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,6 +46,7 @@ ...@@ -46,6 +46,7 @@
row, row,
uname, uname,
tasks = []; tasks = [];
if (response) {
for (i = 0; i < response.length; i += 1) { for (i = 0; i < response.length; i += 1) {
row = response[i]; row = response[i];
uname = row.DIMENSION_UNIQUE_NAME; uname = row.DIMENSION_UNIQUE_NAME;
...@@ -56,6 +57,7 @@ ...@@ -56,6 +57,7 @@
dimensions[uname] = true; dimensions[uname] = true;
} }
} }
}
for (i in dimensions) { for (i in dimensions) {
if (dimensions.hasOwnProperty(i)) { if (dimensions.hasOwnProperty(i)) {
tasks.push(g.getDimension(connection_name, i)) tasks.push(g.getDimension(connection_name, i))
...@@ -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