mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Fix mail list does not get refreshed after spam action
This commit is contained in:
parent
b0c7a55d9d
commit
74152e8dbc
@ -886,6 +886,7 @@ class mail_ui
|
||||
public function ajax_spamAction($_action, $_params)
|
||||
{
|
||||
$msg = array();
|
||||
$refresh = false;
|
||||
$response = Api\Json\Response::get();
|
||||
|
||||
$id_parts = self::splitRowID($_params['row_id']);
|
||||
@ -919,6 +920,7 @@ class mail_ui
|
||||
'all' => false,
|
||||
'msg' => array($_params['row_id'])
|
||||
), 'move');
|
||||
$refresh = true;
|
||||
break;
|
||||
case 'ham':
|
||||
if (isset($this->mail_bo->icServer->acc_folder_ham) && !isset($this->mail_bo->icServer->acc_spam_api))
|
||||
@ -935,10 +937,18 @@ class mail_ui
|
||||
'all' => false,
|
||||
'msg' => array($_params['row_id'])
|
||||
), 'move');
|
||||
$refresh = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
$response->apply('egw.message',[implode('\n',$msg)]);
|
||||
if ($refresh)
|
||||
{
|
||||
$response->apply('egw.refresh',[implode('\n',$msg),'mail',$_params['row_id'],'delete']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$response->apply('egw.message',[implode('\n',$msg)]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user