mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 03:19:56 +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;
|
var af = obj_manager.manager.data.nextmatch.activeFilters;
|
||||||
// merge startdate and enddate into the active filters (if set)
|
// 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;
|
['startdate','enddate'].forEach((date) => {
|
||||||
if (this.et2.getWidgetById('enddate') && this.et2.getWidgetById('enddate').get_value()) af["enddate"] = this.et2.getWidgetById('enddate').date;
|
if (this.et2.getWidgetById(date)?.value)
|
||||||
|
{
|
||||||
|
af[date] = this.et2.getWidgetById(date).value.split('T')[0];
|
||||||
|
}
|
||||||
|
});
|
||||||
return af;
|
return af;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user