// delete duplicates conf/error messages on admin

This commit is contained in:
Rémi Gaillard
2013-03-04 17:36:25 +01:00
parent 74b4fd398f
commit f9e61ef442
+3 -3
View File
@@ -1201,11 +1201,11 @@ class AdminControllerCore extends Controller
$this->context->smarty->assign('conf', $this->_conf[(int)$conf]);
$notifications_type = array('errors', 'warnings', 'informations', 'confirmations');
foreach($notifications_type as $type)
foreach($notifications_type as $type)
if ($this->json)
$this->context->smarty->assign($type, Tools::jsonEncode($this->$type));
$this->context->smarty->assign($type, Tools::jsonEncode(array_unique($this->$type)));
else
$this->context->smarty->assign($type, $this->$type);
$this->context->smarty->assign($type, array_unique($this->$type));
if ($this->json)
$this->context->smarty->assign('page', Tools::jsonEncode($page));