Commit ec934e9b authored by Boris Kocherov's avatar Boris Kocherov Committed by Romain Courteaud

[erp5_only_office] exclude `all` levels in wizard form

parent a403cacd
...@@ -172,10 +172,12 @@ ...@@ -172,10 +172,12 @@
if (response && response.numRows > 0) { if (response && response.numRows > 0) {
while (response.hasMoreRows()) { while (response.hasMoreRows()) {
row = response.readAsObject(); row = response.readAsObject();
arr.push({ if (row["LEVEL_TYPE"] !== 1) { // exclude all level type
const: row["LEVEL_UNIQUE_NAME"] || undefined, arr.push({
title: row["LEVEL_NAME"] || undefined const: row["LEVEL_UNIQUE_NAME"] || undefined,
}); title: row["LEVEL_NAME"] || undefined
});
}
response.nextRow(); response.nextRow();
} }
} }
......
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