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:
|
Dolibarr better:
|
||||||
- Removed hoo supplierorderdao into supplier order creation. This is a business event, so we must use the
|
- Removed hoo supplierorderdao into supplier order creation. This is a business event, so we must use the
|
||||||
trigger ORDER_SUPPLIER_CREATE instead.
|
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.* *****
|
***** ChangeLog for 3.7 compared to 3.6.* *****
|
||||||
|
|||||||
@ -1686,8 +1686,8 @@ function left_menu($menu_array_before, $helppagename='', $moresearchform='', $me
|
|||||||
|
|
||||||
// Execute hook printLeftBlock
|
// Execute hook printLeftBlock
|
||||||
$parameters=array();
|
$parameters=array();
|
||||||
$leftblock=$hookmanager->executeHooks('printLeftBlock',$parameters); // Note that $action and $object may have been modified by some hooks
|
$reshook=$hookmanager->executeHooks('printLeftBlock',$parameters); // Note that $action and $object may have been modified by some hooks
|
||||||
print $leftblock;
|
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";
|
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"
|
else print '</div> <!-- end id-left -->'; // End div id="id-left"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user