From 204bf2e61878376e82d92f3cbf850ea466aa0895 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 11 Jul 2022 10:54:23 +0200 Subject: [PATCH] Update card.php --- htdocs/commande/card.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index 5f90927860d..1e6a33e8ae8 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -1803,8 +1803,10 @@ if ($action == 'create' && $usercancreate) { } // Other attributes - if (!empty($origin) && !empty($originid) && is_object($objectsrc)) + $parameters = array(); + if (!empty($origin) && !empty($originid) && is_object($objectsrc)) { $parameters['objectsrc'] = $objectsrc; + } $parameters['socid'] = $socid; // Note that $action and $object may be modified by hook