mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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:
parent
426835781a
commit
dd82ad69fe
|
|
@ -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.* *****
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user