Skip to content

Commit

Permalink
FIX check parameter socid before cloning a customer proposal (#28085)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvessiller-opendsi authored Feb 9, 2024
1 parent b2fad54 commit e3ad92d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/comm/propal/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@

// 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)) {
Expand Down

0 comments on commit e3ad92d

Please sign in to comment.