fix date-filter were not taken into account when deleting all mails in a folder

This commit is contained in:
ralf 2023-11-21 17:53:09 +02:00
parent 769eaaa353
commit bb9e8dcd7c

View File

@ -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;