diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php index b6c27a3f161..be504a05597 100644 --- a/htdocs/comm/propal/card.php +++ b/htdocs/comm/propal/card.php @@ -2435,7 +2435,7 @@ if ($action == 'create') { print '' . $langs->trans('PaymentConditionsShort') . ''; print img_picto('', 'payment', 'class="pictofixedwidth"'); // at last resort we take the payment term id which may be filled by default values set (if not getpostisset) - print $form->getSelectConditionsPaiements($cond_reglement_id, 'cond_reglement_id', 1, 1, 0, '', $deposit_percent); + print $form->getSelectConditionsPaiements((int) $cond_reglement_id, 'cond_reglement_id', 1, 1, 0, '', $deposit_percent); print ''; // Mode of payment diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index 7d989772052..680b570998c 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -2377,7 +2377,7 @@ if ($action == 'create' && $usercancreate) { // Terms of payment print '' . $langs->trans('PaymentConditionsShort') . ''; print img_picto('', 'payment', 'class="pictofixedwidth"'); - print $form->getSelectConditionsPaiements($cond_reglement_id, 'cond_reglement_id', 1, 1, 0, 'maxwidth200 widthcentpercentminusx', (float) $deposit_percent); + print $form->getSelectConditionsPaiements((int) $cond_reglement_id, 'cond_reglement_id', 1, 1, 0, 'maxwidth200 widthcentpercentminusx', (float) $deposit_percent); print ''; // Payment mode diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index 9effc5df288..dd92a9597e7 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -4426,7 +4426,7 @@ if ($action == 'create') { // Payment term print ''.$langs->trans('PaymentConditionsShort').''; print img_picto('', 'payment', 'class="pictofixedwidth"'); - print $form->getSelectConditionsPaiements($cond_reglement_id, 'cond_reglement_id', -1, 1, 0, 'maxwidth500 widthcentpercentminusx'); + print $form->getSelectConditionsPaiements((int) $cond_reglement_id, 'cond_reglement_id', -1, 1, 0, 'maxwidth500 widthcentpercentminusx'); print ''; // Warranty diff --git a/htdocs/don/card.php b/htdocs/don/card.php index 1b47356c86c..f41bbbc5fe9 100644 --- a/htdocs/don/card.php +++ b/htdocs/don/card.php @@ -637,7 +637,7 @@ if (!empty($id) && $action == 'edit') { // Payment mode print "".$langs->trans("PaymentMode")."\n"; if ($object->mode_reglement_id) { - $selected = $object->mode_reglement_id; + $selected = (string) $object->mode_reglement_id; } else { $selected = ''; } diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index 364d1b69dce..d44cdd7924b 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -1787,7 +1787,7 @@ if ($action == 'create') { // Payment term print ''.$langs->trans('PaymentConditionsShort').''; print img_picto('', 'payment', 'class="pictofixedwidth"'); - print $form->getSelectConditionsPaiements((GETPOSTISSET('cond_reglement_id') && GETPOST('cond_reglement_id') != 0) ? GETPOST('cond_reglement_id') : $cond_reglement_id, 'cond_reglement_id', -1, 1); + print $form->getSelectConditionsPaiements((GETPOSTISSET('cond_reglement_id') && GETPOST('cond_reglement_id') != 0) ? GETPOSTINT('cond_reglement_id') : $cond_reglement_id, 'cond_reglement_id', -1, 1); print ''; // Payment mode diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php index be199e4168c..aa798ee72d5 100644 --- a/htdocs/fourn/facture/card.php +++ b/htdocs/fourn/facture/card.php @@ -2761,7 +2761,7 @@ if ($action == 'create') { // Payment mode print ''.$langs->trans('PaymentMode').''; print img_picto('', 'bank', 'class="pictofixedwidth"'); - $form->select_types_paiements($mode_reglement_id, 'mode_reglement_id', 'DBIT', 0, 1, 0, 0, 1, 'maxwidth200 widthcentpercentminusx'); + $form->select_types_paiements((string) $mode_reglement_id, 'mode_reglement_id', 'DBIT', 0, 1, 0, 0, 1, 'maxwidth200 widthcentpercentminusx'); print ''; // Bank Account diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php index 7660f466e8e..17fbf1699ec 100644 --- a/htdocs/projet/tasks/time.php +++ b/htdocs/projet/tasks/time.php @@ -1518,7 +1518,7 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser print $langs->trans("PaymentConditions"); print ''; print ''; - print $form->getSelectConditionsPaiements($projectstatic->thirdparty->cond_reglement_id, 'condidproject'); + print $form->getSelectConditionsPaiements((int) $projectstatic->thirdparty->cond_reglement_id, 'condidproject'); print ''; print ''; /*print ''; diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php index 3c3dabb25b4..a828699ceea 100644 --- a/htdocs/societe/card.php +++ b/htdocs/societe/card.php @@ -1883,7 +1883,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio print ''; print ''.$form->editfieldkey('PaymentConditions', 'cond_reglement_id', '', $object, 0).''; print ''; - print $form->getSelectConditionsPaiements($object->cond_reglement_id, 'cond_reglement_id', 1, 1, 1, '', (float) $object->deposit_percent); + print $form->getSelectConditionsPaiements((int) $object->cond_reglement_id, 'cond_reglement_id', 1, 1, 1, '', (float) $object->deposit_percent); print ''; // Payment mode diff --git a/htdocs/supplier_proposal/card.php b/htdocs/supplier_proposal/card.php index e51314d629f..d6fa84fb30e 100644 --- a/htdocs/supplier_proposal/card.php +++ b/htdocs/supplier_proposal/card.php @@ -1349,7 +1349,7 @@ if ($action == 'create') { // Terms of payment print ''.$langs->trans('PaymentConditionsShort').''; print img_picto('', 'payment', 'class="pictofixedwidth"'); - print $form->getSelectConditionsPaiements(GETPOST('cond_reglement_id') > 0 ? GETPOST('cond_reglement_id') : $cond_reglement_id, 'cond_reglement_id', -1, 1); + print $form->getSelectConditionsPaiements(GETPOST('cond_reglement_id') > 0 ? GETPOSTINT('cond_reglement_id') : $cond_reglement_id, 'cond_reglement_id', -1, 1); print ''; // Mode of payment