mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix chill-bundles#25 RollingDate bad expression
This commit is contained in:
parent
2178485e5e
commit
2db778c4a4
@ -58,7 +58,7 @@ class ByEndDateFilter implements FilterInterface
|
||||
$builder
|
||||
->add('start_date', PickRollingDateType::class, [
|
||||
'label' => 'start period date',
|
||||
'data' => new RollingDate(RollingDate::T_TODAY, new DateTimeImmutable('1 year ago')),
|
||||
'data' => new RollingDate(RollingDate::T_YEAR_PREVIOUS_START),
|
||||
'input' => 'datetime_immutable',
|
||||
])
|
||||
->add('end_date', PickRollingDateType::class, [
|
||||
|
@ -58,7 +58,7 @@ class ByStartDateFilter implements FilterInterface
|
||||
$builder
|
||||
->add('start_date', PickRollingDateType::class, [
|
||||
'label' => 'start period date',
|
||||
'data' => new RollingDate(RollingDate::T_TODAY, new DateTimeImmutable('1 year ago')),
|
||||
'data' => new RollingDate(RollingDate::T_YEAR_PREVIOUS_START),
|
||||
'input' => 'datetime_immutable',
|
||||
])
|
||||
->add('end_date', PickRollingDateType::class, [
|
||||
|
Loading…
x
Reference in New Issue
Block a user