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)) {