diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php index e823ec95cdc..ba78c711dcc 100644 --- a/htdocs/comm/propal/card.php +++ b/htdocs/comm/propal/card.php @@ -12,7 +12,7 @@ * Copyright (C) 2013-2014 Florian Henry * Copyright (C) 2014 Ferran Marcet * Copyright (C) 2016 Marcos García - * Copyright (C) 2018-2019 Frédéric France + * Copyright (C) 2018-2021 Frédéric France * Copyright (C) 2020 Nicolas ZABOURI * * This program is free software; you can redistribute it and/or modify @@ -1557,12 +1557,11 @@ if ($action == 'create') } print ''."\n"; - if ($socid > 0) - { + if ($socid > 0) { // Contacts (ask contact only if thirdparty already defined). print "".$langs->trans("DefaultContact").''; print img_picto('', 'contact'); - $form->select_contacts($soc->id, $contactid, 'contactid', 1, $srccontactslist); + $form->selectcontacts($soc->id, $contactid, 'contactid', 1, $srccontactslist); print ''; // Third party discounts info line @@ -1612,8 +1611,9 @@ if ($action == 'create') // Delivery delay print ''.$langs->trans('AvailabilityPeriod'); - if (!empty($conf->commande->enabled)) + if (!empty($conf->commande->enabled)) { print ' ('.$langs->trans('AfterOrder').')'; + } print ''; print img_picto('', 'clock').' '; $form->selectAvailabilityDelay('', 'availability_id', '', 1);