Fix option MAIN_USE_HOURMIN_IN_DATE_RANGE was not supported in output
This commit is contained in:
parent
f809800e01
commit
060b59ac6c
@ -90,12 +90,14 @@ if (empty($usemargins)) $usemargins=0;
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$format = $conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE?'dayhour':'day';
|
||||||
|
|
||||||
if ($line->fk_product > 0)
|
if ($line->fk_product > 0)
|
||||||
{
|
{
|
||||||
echo $form->textwithtooltip($text,$description,3,'','',$i,0,(!empty($line->fk_parent_line)?img_picto('', 'rightarrow'):''));
|
echo $form->textwithtooltip($text,$description,3,'','',$i,0,(!empty($line->fk_parent_line)?img_picto('', 'rightarrow'):''));
|
||||||
|
|
||||||
// Show range
|
// Show range
|
||||||
echo get_date_range($line->date_start, $line->date_end);
|
echo get_date_range($line->date_start, $line->date_end, $format);
|
||||||
|
|
||||||
// Add description in form
|
// Add description in form
|
||||||
if (! empty($conf->global->PRODUIT_DESC_IN_FORM))
|
if (! empty($conf->global->PRODUIT_DESC_IN_FORM))
|
||||||
@ -119,7 +121,7 @@ if (empty($usemargins)) $usemargins=0;
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Show range
|
// Show range
|
||||||
echo get_date_range($line->date_start,$line->date_end);
|
echo get_date_range($line->date_start,$line->date_end, $format);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user