From e3ad92df44efac2e8d91dbffc169fb2bd556c711 Mon Sep 17 00:00:00 2001 From: lvessiller-opendsi Date: Fri, 9 Feb 2024 14:09:03 +0100 Subject: [PATCH] FIX check parameter socid before cloning a customer proposal (#28085) --- htdocs/comm/propal/card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php index 1156df8a2c6..3e201e1f683 100644 --- a/htdocs/comm/propal/card.php +++ b/htdocs/comm/propal/card.php @@ -179,8 +179,8 @@ if (empty($reshook)) { // Action clone object if ($action == 'confirm_clone' && $confirm == 'yes' && $usercancreate) { - if (!GETPOST('socid', 3)) { - setEventMessages($langs->trans("NoCloneOptionsSpecified"), null, 'errors'); + if (!($socid > 0)) { + setEventMessages($langs->trans('ErrorFieldRequired', $langs->transnoentitiesnoconv('IdThirdParty')), null, 'errors'); } else { if ($object->id > 0) { if (!empty($conf->global->PROPAL_CLONE_DATE_DELIVERY)) {