mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-15 10:52:30 +02:00
For push update filter, consider empty array as having no value
This commit is contained in:
@ -373,17 +373,18 @@ export abstract class EgwApp
|
||||
}
|
||||
|
||||
// Get current filter values
|
||||
if(this.et2)
|
||||
{
|
||||
let value = nm.getValue();
|
||||
if(!value || !value.col_filter) return false;
|
||||
let value = nm.getValue();
|
||||
if(!value || !value.col_filter) 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];
|
||||
if(val && (
|
||||
typeof val == "string" && val.trim().length > 0 ||
|
||||
typeof val == "object" && !jQuery.isEmptyObject(val)
|
||||
))
|
||||
{
|
||||
if(value.col_filter[field_filter.col])
|
||||
{
|
||||
field_filter.filter_values.push(value.col_filter[field_filter.col]);
|
||||
}
|
||||
field_filter.filter_values.push(val);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user