// delete duplicates conf/error messages on admin

This commit is contained in:
Rémi Gaillard committed 2013-03-04 17:36:25 +01:00
1 parent 74b4fd398f
commit f9e61ef442
1 file changed
+2 -2
+2 -2
View File
@@ -1203,9 +1203,9 @@ class AdminControllerCore extends Controller
$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));