mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
handel empty objects like empty array
This commit is contained in:
parent
e60fd8f1ef
commit
685a0d3328
@ -252,10 +252,12 @@ export class EgwApp {
|
|||||||
return false;
|
return false;
|
||||||
for (let field_filter of Object.values(filters)) {
|
for (let field_filter of Object.values(filters)) {
|
||||||
let val = value.col_filter[field_filter.col];
|
let val = value.col_filter[field_filter.col];
|
||||||
if (val && (typeof val == "string" && val.trim().length > 0 ||
|
if (val && (typeof val == "string" && val.trim().length > 0)) {
|
||||||
typeof val == "object" && !jQuery.isEmptyObject(val))) {
|
|
||||||
field_filter.filter_values.push(val);
|
field_filter.filter_values.push(val);
|
||||||
}
|
}
|
||||||
|
else if (val && typeof val == "object" && !jQuery.isEmptyObject(val)) {
|
||||||
|
field_filter.filter_values = field_filter.filter_values.concat(Object.values(val));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// check filters against pushData.acl data
|
// check filters against pushData.acl data
|
||||||
for (let field_filter of Object.values(filters)) {
|
for (let field_filter of Object.values(filters)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user