Merge pull request #3216 from CihanSenturk/fix-report-filter-period-issue

Fixed report filter period issue
This commit is contained in:
Cüneyt Şentürk 2024-09-25 10:06:17 +01:00 committed by GitHub
commit de12a361b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -286,7 +286,13 @@ abstract class Report
public function getFormattedDate($event, $date)
{
return $this->getPeriodicDate($date, $event->class->getSetting('period'), $event->class->year);
$period = $this->getSearchStringValue('period');
if (empty($period)) {
$period = $event->class->getSetting('period');
}
return $this->getPeriodicDate($date, $period, $event->class->year);
}
protected function fireEvent($event_class, $event, $group = null)