// Fix output for ajax content

This commit is contained in:
Jerome Nadaud
2013-10-02 17:50:39 +02:00
parent dc06ef9c6d
commit 2a984186a9
+5 -1
View File
@@ -1332,7 +1332,11 @@ class AdminControllerCore extends Controller
$this->context->smarty->assign($type, $this->json ? Tools::jsonEncode(array_unique($this->$type)) : array_unique($this->$type));
$this->context->smarty->assign('page', $this->json ? Tools::jsonEncode($page) : $page);
$this->smartyOutputContent(array($header_tpl, $this->layout, $footer_tpl));
if (!$this->ajax)
$this->smartyOutputContent(array($header_tpl, $this->layout, $footer_tpl));
else
$this->smartyOutputContent($this->layout);
}
/**