Commit bb0c52d8 authored by Boris Kocherov's avatar Boris Kocherov

[erp5_only_office] up level.members.length to 600 after speedup fix

parent 96189cc3
...@@ -46,14 +46,16 @@ ...@@ -46,14 +46,16 @@
row, row,
uname, uname,
tasks = []; tasks = [];
for (i = 0; i < response.length; i += 1) { if (response) {
row = response[i]; for (i = 0; i < response.length; i += 1) {
uname = row.DIMENSION_UNIQUE_NAME; row = response[i];
if (!dimensions.hasOwnProperty(uname) && uname = row.DIMENSION_UNIQUE_NAME;
used_hierarchies.indexOf(row.HIERARCHY_UNIQUE_NAME) < 0 && if (!dimensions.hasOwnProperty(uname) &&
row.DIMENSION_TYPE !== 2 // !measure used_hierarchies.indexOf(row.HIERARCHY_UNIQUE_NAME) < 0 &&
) { row.DIMENSION_TYPE !== 2 // !measure
dimensions[uname] = true; ) {
dimensions[uname] = true;
}
} }
} }
for (i in dimensions) { for (i in dimensions) {
...@@ -117,7 +119,7 @@ ...@@ -117,7 +119,7 @@
for (i = 0; i < response.length; i += 1) { for (i = 0; i < response.length; i += 1) {
row = response[i]; row = response[i];
if ( if (
row["LEVEL_CARDINALITY"] < 150 && row["LEVEL_CARDINALITY"] < 600 &&
row["LEVEL_TYPE"] !== 1 // exclude all level type row["LEVEL_TYPE"] !== 1 // exclude all level type
) { ) {
arr.push({ arr.push({
......
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