[export] set the default date for accompanying period list

This commit is contained in:
2023-06-27 11:13:07 +02:00
parent 9f0fdb031a
commit a93051d157
2 changed files with 10 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ use Chill\MainBundle\Export\Helper\ExportAddressHelper;
use Chill\MainBundle\Export\Helper\UserHelper;
use Chill\MainBundle\Export\ListInterface;
use Chill\MainBundle\Form\Type\PickRollingDateType;
use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Service\RollingDate\RollingDateConverterInterface;
use Chill\MainBundle\Templating\TranslatableStringHelperInterface;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
@@ -146,7 +147,9 @@ class ListAccompanyingPeriod implements ListInterface, GroupedExportInterface
}
public function getFormDefaultData(): array
{
return [];
return [
'calc_date' => new RollingDate(RollingDate::T_TODAY)
];
}
public function getAllowedFormattersTypes()