Skip to content

Commit c11b025

Browse files
committed
Agenda: Repeated "All day" events show on full day span after first occurence #3394
From the second round, allDay changes from true to 1, as compared to the string true, it will not validate the date for its continuation. Validation against 1 is added directly to compare against numeric value 1 that can be assumed to be true. The database all_day field in table c_calendar_event is set to 1 correctly.
1 parent 47fc147 commit c11b025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/lib/agenda.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public function addEvent(
246246
) {
247247
$start = api_get_utc_datetime($start);
248248
$end = api_get_utc_datetime($end);
249-
$allDay = isset($allDay) && $allDay === 'true' ? 1 : 0;
249+
$allDay = isset($allDay) && ($allDay === 'true' or $allDay == 1) ? 1 : 0;
250250
$id = null;
251251

252252
switch ($this->type) {

0 commit comments

Comments
 (0)