FIX check parameter socid before cloning a customer proposal (#28085)
This commit is contained in:
parent
b2fad54f1f
commit
e3ad92df44
1 changed files with 2 additions and 2 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue