fix chill-bundles#25 RollingDate bad expression

This commit is contained in:
Mathieu Jaumotte 2022-11-14 16:16:38 +01:00
parent 2178485e5e
commit 2db778c4a4
2 changed files with 2 additions and 2 deletions

View File

@ -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, [

View File

@ -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, [