Commit fd261ee0 authored by Boris Kocherov's avatar Boris Kocherov

[erp5_only_office] fix spliting members in argument CUBEMEMBER

parent 2dcc2cdf
...@@ -259,9 +259,15 @@ function (window, RSVP, Xmla, console) { ...@@ -259,9 +259,15 @@ function (window, RSVP, Xmla, console) {
if (value.cube_value) { if (value.cube_value) {
array = value.cube_value; array = value.cube_value;
} else { } else {
// XXX split only member not part in member // split only member not part in member
// [Promotion].[Media Type].[Daily Paper, Radio, TV] // [Promotion].[Media Type].[Daily Paper, Radio, TV]
array = value.value.split(','); array = value.value
.replace(/^w*\[/, "")
.replace(/]w*$/, "")
.split(/]\w*,\w*\[/)
.map(function (x) {
return '[' + x + ']';
});
} }
if (array.length > 0) { if (array.length > 0) {
// filter members already existed // filter members already existed
......
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