Skip to content

Commit

Permalink
[BUGFIX] Set initial filter to last three month for all units
Browse files Browse the repository at this point in the history
this is only relevant if there is no filter set yet in dashboard
  • Loading branch information
einpraegsam committed Feb 23, 2024
1 parent 316b155 commit 94a8a62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Backend/Units/AbstractUnit.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ protected function initializeFilter(): void
$filter = ObjectUtility::getFilterDto();
if ($this->filterClass !== '' && $this->filterFunction !== '') {
$filterArray = BackendUtility::getSessionValue('filter', $this->filterFunction, $this->filterClass);
$filterArray = array_merge(['timePeriod' => FilterDto::PERIOD_LAST3MONTH], $filterArray);
$propertyMapper = GeneralUtility::makeInstance(PropertyMapper::class);
$filter = $propertyMapper->convert($filterArray, FilterDto::class);
}
Expand Down

0 comments on commit 94a8a62

Please sign in to comment.