Commit dc1f33e1 authored by Boris Kocherov's avatar Boris Kocherov

[erp5_only_office] olapy compatibility changes

parent 31278aa9
...@@ -83,10 +83,14 @@ ...@@ -83,10 +83,14 @@
if (!settings.prop.restrictions) { if (!settings.prop.restrictions) {
settings.prop.restrictions = {}; settings.prop.restrictions = {};
} }
if (!settings.prop.properties) {
settings.prop.properties = {};
}
if (connection_settings) { if (connection_settings) {
settings.urls = connection_settings.urls; settings.urls = connection_settings.urls;
settings.prop.restrictions.CATALOG_NAME = connection_settings.properties.Catalog;
settings.prop.restrictions.CUBE_NAME = connection_settings.properties.Cube; settings.prop.restrictions.CUBE_NAME = connection_settings.properties.Cube;
settings.prop.properties.DataSourceInfo = connection_settings.properties.DataSourceInfo;
settings.prop.properties.Catalog = connection_settings.properties.Catalog;
} }
return xmla_request_retry(function_name, settings); return xmla_request_retry(function_name, settings);
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment