From 980f95bf4edb27b5960cbc795dcf8aa6ca81b7c8 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Mon, 27 Aug 2012 16:00:30 +0000 Subject: [PATCH] [-] BO : fixed bug #PSCFV-3738 - addCSS() and addJS() methods not working in backOfficeHeader hook --- classes/controller/AdminController.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index ebda9d18c..c4a74e18f 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -1674,8 +1674,16 @@ class AdminControllerCore extends Controller 'current' => self::$currentIndex, 'token' => $this->token, )); - - $this->context->smarty->assign('submit_form_ajax', (int)Tools::getValue('submitFormAjax')); + + if ($this->display_header) + $this->context->smarty->assign('displayBackOfficeHeader', Hook::exec('displayBackOfficeHeader', array())); + + $this->context->smarty->assign( + array( + 'displayBackOfficeTop' => Hook::exec('displayBackOfficeTop', array()), + 'submit_form_ajax' => (int)Tools::getValue('submitFormAjax') + ) + ); $this->initProcess(); }