Issue #3630718: Show only current day shows an empty row when today is grouped with other days

With 'Group consecutive days with same hours', groupDays() keeps a group of days under the key of its last day. keepCurrentDay() looked up today by its own key, and when that was missing it stored an empty row before its fallback loop, so the loop never ran: on any day but the last of its group the formatter showed an empty row ('Closed', no label) and raised PHP warnings. The fallback also could not find a group that runs past Saturday into Sunday.

Look today up by its key, else find the group that contains it, counting the days from the first day of the group.

Closes #3630718

Merge request reports

Loading
Loading