// delete duplicates conf/error messages on admin
This commit is contained in:
1 parent
74b4fd398f
commit
f9e61ef442
1 file changed
+3
-3
@@ -1201,11 +1201,11 @@ class AdminControllerCore extends Controller
|
|||||||
$this->context->smarty->assign('conf', $this->_conf[(int)$conf]);
|
$this->context->smarty->assign('conf', $this->_conf[(int)$conf]);
|
||||||
|
|
||||||
$notifications_type = array('errors', 'warnings', 'informations', 'confirmations');
|
$notifications_type = array('errors', 'warnings', 'informations', 'confirmations');
|
||||||
foreach($notifications_type as $type)
|
foreach($notifications_type as $type)
|
||||||
if ($this->json)
|
if ($this->json)
|
||||||
$this->context->smarty->assign($type, Tools::jsonEncode($this->$type));
|
$this->context->smarty->assign($type, Tools::jsonEncode(array_unique($this->$type)));
|
||||||
else
|
else
|
||||||
$this->context->smarty->assign($type, $this->$type);
|
$this->context->smarty->assign($type, array_unique($this->$type));
|
||||||
|
|
||||||
if ($this->json)
|
if ($this->json)
|
||||||
$this->context->smarty->assign('page', Tools::jsonEncode($page));
|
$this->context->smarty->assign('page', Tools::jsonEncode($page));
|
||||||
|
|||||||
Reference in new issue
Block a user