mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 17:48:56 +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)
|
public function ajax_spamAction($_action, $_params)
|
||||||
{
|
{
|
||||||
$msg = array();
|
$msg = array();
|
||||||
|
$refresh = false;
|
||||||
$response = Api\Json\Response::get();
|
$response = Api\Json\Response::get();
|
||||||
|
|
||||||
$id_parts = self::splitRowID($_params['row_id']);
|
$id_parts = self::splitRowID($_params['row_id']);
|
||||||
@ -919,6 +920,7 @@ class mail_ui
|
|||||||
'all' => false,
|
'all' => false,
|
||||||
'msg' => array($_params['row_id'])
|
'msg' => array($_params['row_id'])
|
||||||
), 'move');
|
), 'move');
|
||||||
|
$refresh = true;
|
||||||
break;
|
break;
|
||||||
case 'ham':
|
case 'ham':
|
||||||
if (isset($this->mail_bo->icServer->acc_folder_ham) && !isset($this->mail_bo->icServer->acc_spam_api))
|
if (isset($this->mail_bo->icServer->acc_folder_ham) && !isset($this->mail_bo->icServer->acc_spam_api))
|
||||||
@ -935,11 +937,19 @@ class mail_ui
|
|||||||
'all' => false,
|
'all' => false,
|
||||||
'msg' => array($_params['row_id'])
|
'msg' => array($_params['row_id'])
|
||||||
), 'move');
|
), 'move');
|
||||||
|
$refresh = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if ($refresh)
|
||||||
|
{
|
||||||
|
$response->apply('egw.refresh',[implode('\n',$msg),'mail',$_params['row_id'],'delete']);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
$response->apply('egw.message',[implode('\n',$msg)]);
|
$response->apply('egw.message',[implode('\n',$msg)]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build spam actions
|
* Build spam actions
|
||||||
|
Loading…
Reference in New Issue
Block a user