diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php
index d76c28ed813..4fe93ad4df7 100644
--- a/htdocs/comm/propal/card.php
+++ b/htdocs/comm/propal/card.php
@@ -1844,7 +1844,7 @@ if ($action == 'create') {
// Source / Channel - What trigger creation
print '
| '.$langs->trans('Source').' | ';
print img_picto('', 'question', 'class="pictofixedwidth"');
- $form->selectInputReason('', 'demand_reason_id', "SRC_PROP", 1, 'maxwidth200 widthcentpercentminusx');
+ $form->selectInputReason((GETPOSTISSET('demand_reason_id') ? GETPOST('demand_reason_id', 'int') : ''), 'demand_reason_id', "SRC_PROP", 1, 'maxwidth200 widthcentpercentminusx');
print ' |
';
// Delivery delay
@@ -1854,7 +1854,7 @@ if ($action == 'create') {
}
print '| '.$langs->trans('SendingMethod').' | ';
print img_picto('', 'object_dollyrevert', 'class="pictofixedwidth"');
- $form->selectShippingMethod($shipping_method_id, 'shipping_method_id', '', 1, '', 0, 'maxwidth200 widthcentpercentminusx');
+ $form->selectShippingMethod((GETPOSTISSET('shipping_method_id') ? GETPOST('shipping_method_id', 'int') : $shipping_method_id), 'shipping_method_id', '', 1, '', 0, 'maxwidth200 widthcentpercentminusx');
print ' |
';
}
diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php
index 3edfe0fafc5..fdfd57a5cf6 100644
--- a/htdocs/commande/card.php
+++ b/htdocs/commande/card.php
@@ -1651,10 +1651,10 @@ if ($action == 'create' && $usercancreate) {
if (!$remise_percent) {
$remise_percent = $soc->remise_percent;
}
- if (!$dateorder) {
+ /*if (!$dateorder) {
// Do not set 0 here (0 for a date is 1970)
- $dateorder = (empty($dateinvoice) ? (empty($conf->global->MAIN_AUTOFILL_DATE_ODER) ?-1 : '') : $dateorder);
- }
+ $dateorder = (empty($dateinvoice) ? (empty($conf->global->MAIN_AUTOFILL_DATE_ORDER) ?-1 : '') : $dateorder);
+ }*/
} else {
// For compatibility
if ($element == 'order' || $element == 'commande') {
@@ -1753,7 +1753,7 @@ if ($action == 'create' && $usercancreate) {
print '