printLeftBlock is now compliant with hook development rules. It is an

"addreplace" hook so you must return content by doing
->resprints='mycontent' and not by doing return 'mycontent'
This commit is contained in:
Laurent Destailleur 2015-03-18 12:30:49 +01:00
parent 426835781a
commit dd82ad69fe
2 changed files with 4 additions and 3 deletions

View File

@ -31,7 +31,8 @@ WARNING: Following changes may create regression for some external modules, but
Dolibarr better:
- Removed hoo supplierorderdao into supplier order creation. This is a business event, so we must use the
trigger ORDER_SUPPLIER_CREATE instead.
- printLeftBlock is now compliant with hook development rules. It is an "addreplace" hook so you must
return content by doing ->resprints='mycontent' and not by doing return 'mycontent'
***** ChangeLog for 3.7 compared to 3.6.* *****

View File

@ -1686,8 +1686,8 @@ function left_menu($menu_array_before, $helppagename='', $moresearchform='', $me
// Execute hook printLeftBlock
$parameters=array();
$leftblock=$hookmanager->executeHooks('printLeftBlock',$parameters); // Note that $action and $object may have been modified by some hooks
print $leftblock;
$reshook=$hookmanager->executeHooks('printLeftBlock',$parameters); // Note that $action and $object may have been modified by some hooks
print $hookmanager->resPrint;
if (empty($conf->dol_use_jmobile) && ! empty($conf->use_javascript_ajax) && ! empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) print '</div> <!-- End left layout -->'."\n";
else print '</div> <!-- end id-left -->'; // End div id="id-left"