From ce6d1d306d4bcfd3b66319013fd5007bb9ad943e Mon Sep 17 00:00:00 2001 From: gauthier Date: Thu, 26 Oct 2017 11:32:26 +0200 Subject: [PATCH] FIX : hook formObjectOptions() must use $expe and not $object which is an order here --- htdocs/expedition/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php index b2715e7d35a..b29867da547 100644 --- a/htdocs/expedition/card.php +++ b/htdocs/expedition/card.php @@ -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)) {