Merge pull request #7713 from atm-gauthier/6.0_fix_hook_on_shipping_card

FIX : hook formObjectOptions() must use $expe and not $object which i…
This commit is contained in:
Laurent Destailleur 2017-10-27 02:15:30 +02:00 committed by GitHub
commit 4c5bb7660c

View File

@ -777,7 +777,7 @@ if ($action == 'create')
// Other attributes
$parameters = array('objectsrc' => $objectsrc, 'colspan' => ' colspan="3"', 'socid'=>$socid);
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$expe,$action); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;
if (empty($reshook) && ! empty($extrafields->attribute_label)) {