Merge pull request #24689 from solution-libre/fix-date-form-for-order
Fix date form for order
This commit is contained in:
commit
d30a25bd28
1 changed files with 1 additions and 4 deletions
|
|
@ -2663,10 +2663,7 @@ if ($action == 'create') {
|
|||
//print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("ToOrder").'</td></tr>';
|
||||
print '<tr><td class="fieldrequired">'.$langs->trans("OrderDate").'</td><td>';
|
||||
$date_com = dol_mktime(GETPOST('rehour', 'int'), GETPOST('remin', 'int'), GETPOST('resec', 'int'), GETPOST('remonth', 'int'), GETPOST('reday', 'int'), GETPOST('reyear', 'int'));
|
||||
if (empty($date_com)) {
|
||||
$date_com = dol_now();
|
||||
}
|
||||
print $form->selectDate($date_com, '', 1, 1, '', "commande", 1, 1);
|
||||
print $form->selectDate($date_com ?: '', '', 0, 0, '', "commande", 1, 1);
|
||||
print '</td></tr>';
|
||||
|
||||
// Force mandatory order method
|
||||
|
|
|
|||
Loading…
Reference in a new issue