mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
fix date-filter were not taken into account when deleting all mails in a folder
This commit is contained in:
parent
769eaaa353
commit
bb9e8dcd7c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user