diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php index 3d305ee9b59..e46d3ac243b 100644 --- a/htdocs/comm/propal/card.php +++ b/htdocs/comm/propal/card.php @@ -2462,7 +2462,7 @@ if ($action == 'create') { $reshook = $hookmanager->executeHooks('formAddObjectLine', $parameters, $object, $action); // Note that $action and $object may have been modified by hook if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); if (empty($reshook)) - $object->formAddObjectLine(1, $societe, $mysoc); + $object->formAddObjectLine(1, $mysoc, $soc); } else { $parameters = array(); $reshook = $hookmanager->executeHooks('formEditObjectLine', $parameters, $object, $action); // Note that $action and $object may have been modified by hook diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index 34d32b26c2e..c11599fb6be 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -2448,7 +2448,7 @@ if ($action == 'create' && $usercancreate) { $reshook = $hookmanager->executeHooks('formAddObjectLine', $parameters, $object, $action); if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); if (empty($reshook)) - $object->formAddObjectLine(1, $societe, $mysoc); + $object->formAddObjectLine(1, $mysoc, $soc); } } print ''; diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index 4d206bd4790..405739bd36b 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -5196,7 +5196,7 @@ if ($action == 'create') { $reshook = $hookmanager->executeHooks('formAddObjectLine', $parameters, $object, $action); // Note that $action and $object may have been modified by hook if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); if (empty($reshook)) - $object->formAddObjectLine(1, $societe, $mysoc); + $object->formAddObjectLine(1, $mysoc, $soc); } } diff --git a/htdocs/contrat/card.php b/htdocs/contrat/card.php index 1393ecf4929..ffc8dc37df6 100644 --- a/htdocs/contrat/card.php +++ b/htdocs/contrat/card.php @@ -1986,7 +1986,7 @@ if ($action == 'create') { $reshook = $hookmanager->executeHooks('formAddObjectLine', $parameters, $object, $action); // Note that $action and $object may have been modified by hook if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); if (empty($reshook)) - $object->formAddObjectLine(1, $societe, $mysoc); + $object->formAddObjectLine(1, $mysoc, $soc); } print ''; diff --git a/htdocs/eventorganization/conferenceorboothattendee_card.php b/htdocs/eventorganization/conferenceorboothattendee_card.php index 1462a7ee8a7..8a3767f0606 100644 --- a/htdocs/eventorganization/conferenceorboothattendee_card.php +++ b/htdocs/eventorganization/conferenceorboothattendee_card.php @@ -600,7 +600,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea $reshook = $hookmanager->executeHooks('formAddObjectLine', $parameters, $object, $action); // Note that $action and $object may have been modified by hook if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); if (empty($reshook)) - $object->formAddObjectLine(1, $societe, $mysoc); + $object->formAddObjectLine(1, $mysoc, $soc); } }