From 2c2563eccfdb86b2a8fbc6036f8118bbb6e4a18d Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 8 Jun 2021 13:31:32 -0600 Subject: [PATCH] Fix PUSH new entries did not show if filter had multiple values (cherry picked from commit 0caabaf516d77f18b3a05686ec30979aa83c223c) --- api/js/jsapi/egw_app.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api/js/jsapi/egw_app.ts b/api/js/jsapi/egw_app.ts index d60bd766fa..0e425e4cbd 100644 --- a/api/js/jsapi/egw_app.ts +++ b/api/js/jsapi/egw_app.ts @@ -382,12 +382,15 @@ export abstract class EgwApp { let val = value.col_filter[field_filter.col]; if(val && ( - typeof val == "string" && val.trim().length > 0 || - typeof val == "object" && !jQuery.isEmptyObject(val) + typeof val == "string" && val.trim().length > 0 )) { 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