From bb9e8dcd7c701c24515b0416f5b9d0470ddff4fd Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 21 Nov 2023 17:53:09 +0200 Subject: [PATCH] fix date-filter were not taken into account when deleting all mails in a folder --- mail/js/app.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mail/js/app.js b/mail/js/app.js index 3e674db9e2..182de9ec70 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -2638,8 +2638,12 @@ app.classes.mail = AppJS.extend( { var af = obj_manager.manager.data.nextmatch.activeFilters; // merge startdate and enddate into the active filters (if set) - if (this.et2.getWidgetById('startdate') && this.et2.getWidgetById('startdate').get_value()) af["startdate"] = this.et2.getWidgetById('startdate').date; - if (this.et2.getWidgetById('enddate') && this.et2.getWidgetById('enddate').get_value()) af["enddate"] = this.et2.getWidgetById('enddate').date; + ['startdate','enddate'].forEach((date) => { + if (this.et2.getWidgetById(date)?.value) + { + af[date] = this.et2.getWidgetById(date).value.split('T')[0]; + } + }); return af; } return false;