Commit fd261ee0 by Boris Kocherov

[erp5_only_office] fix spliting members in argument CUBEMEMBER

1 parent 2dcc2cdf
......@@ -259,9 +259,15 @@ function (window, RSVP, Xmla, console) {
if (value.cube_value) {
array = value.cube_value;
} else {
// XXX split only member not part in member
// split only member not part in member
// [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) {
// filter members already existed
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!