Export: add clauses on the social work start date and end date within the filter "Filter accompanying period by accompanying period work"'

This commit is contained in:
2023-11-15 13:23:05 +01:00
parent af6bee2497
commit e9df26c2f7
6 changed files with 147 additions and 26 deletions

View File

@@ -37,9 +37,13 @@ class RollingDateDataMapper implements DataMapperInterface
{
$forms = iterator_to_array($forms);
$viewData = new RollingDate(
$forms['roll']->getData() ?? RollingDate::T_TODAY,
$forms['fixedDate']->getData()
);
if (null === $forms['roll']->getData()) {
$viewData = null;
} else {
$viewData = new RollingDate(
$forms['roll']->getData(),
$forms['fixedDate']->getData()
);
}
}
}