Commit 8b5f54b8 authored by Boris Kocherov's avatar Boris Kocherov Committed by Romain Courteaud

[erp5_only_office] fix spliting members in argument CUBEMEMBER

parent 6b8c5bf1
......@@ -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
......
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