From 830f78b1c63adb14cd2b95cdb63d22f618e15414 Mon Sep 17 00:00:00 2001 From: BENKE Charlie Date: Fri, 18 Mar 2016 11:55:41 +0100 Subject: [PATCH] FIX : hookmanager must be init Else we can't use is on additionnal modules --- htdocs/core/ajax/selectsearchbox.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/htdocs/core/ajax/selectsearchbox.php b/htdocs/core/ajax/selectsearchbox.php index 6c91974b4a4..2114fe04b50 100644 --- a/htdocs/core/ajax/selectsearchbox.php +++ b/htdocs/core/ajax/selectsearchbox.php @@ -122,6 +122,8 @@ if (! empty($conf->hrm->enabled) && ! empty($conf->global->MAIN_SEARCHFORM_EMPLO */ // Execute hook addSearchEntry +$hookmanager->initHooks(array('searchform','leftblock')); + $parameters=array(); $reshook=$hookmanager->executeHooks('addSearchEntry',$parameters); if (empty($reshook)) @@ -132,12 +134,6 @@ else $arrayresult=$hookmanager->resArray; - - - - - - print json_encode($arrayresult); if (is_object($db)) $db->close();