fix folder badge was not updated when rightclick 'mark all as read' was clicked

This commit is contained in:
milan 2024-09-26 13:31:50 +02:00
parent 5255a8ecf8
commit 1434694365

View File

@ -5301,7 +5301,7 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
} }
else if ((isset($_messageList['all']) && $_messageList['all']) || ($query['filter'] && ($flag2check==$query['filter'] || stripos($query['filter'],$flag2check)!==false))) else if ((isset($_messageList['all']) && $_messageList['all']) || ($query['filter'] && ($flag2check==$query['filter'] || stripos($query['filter'],$flag2check)!==false)))
{ {
self::ajax_setFolderStatus([$_messageList['msg']['0']],true); self::ajax_setFolderStatus($_messageList['msg'],true);
$response->call('egw.refresh',lang('flagged %1 messages as %2 in %3',(isset($_messageList['all']) && $_messageList['all']?lang('all'):count($_messageList['msg'])),lang(($flag[$_flag]?$flag[$_flag]:$_flag)),lang($folder)),'mail'); $response->call('egw.refresh',lang('flagged %1 messages as %2 in %3',(isset($_messageList['all']) && $_messageList['all']?lang('all'):count($_messageList['msg'])),lang(($flag[$_flag]?$flag[$_flag]:$_flag)),lang($folder)),'mail');
} }
else else