[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Calendar: correctly update all-day event status

"Adrien Mbuya Maloba \(@adrienmaloba\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a7f62d0c983_3839e34ac16797@gitlab-sidekiq-low-urgency-cpu-bound-v2-7774c44f54-brgr5.mail>

Adrien Mbuya Maloba pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
4eaed926 by Adrien Mbuya Maloba at 2026-08-14T21:30:32+03:00
[FIX] Calendar: correctly update all-day event status
---
* [FIX] Calendar: correctly update all-day event status

See merge request tikiwiki/tiki!10882

- - - - -


1 changed file:

- lib/core/Tiki/SabreDav/Utilities.php


Changes:

=====================================
lib/core/Tiki/SabreDav/Utilities.php
=====================================
@@ -354,11 +354,10 @@ class Utilities
         if (isset($component->{'X-Tiki-Allday'})) {
             $isAllDay = ! empty($convertToString($component->{'X-Tiki-Allday'}));
         }
-        if ($isAllDay) {
-            $result['allday'] = 1;
-            if ($rec) {
-                $rec->setAllday(1);
-            }
+
+        $result['allday'] = $isAllDay ? 1 : 0;
+        if ($rec) {
+            $rec->setAllday($result['allday']);
         }
         if (isset($component->{'X-Tiki-sendReminder'})) {
             $result['sendReminder'] = empty($convertToString($component->{'X-Tiki-sendReminder'})) ? 0 : 1;
@@ -632,6 +631,7 @@ class Utilities
         } elseif (! empty($row['uid'])) {
             $data['UID'] = $row['uid'];
         }
+
         if (! empty($row['allday'])) {
             $data['X-Tiki-Allday'] = $row['allday'];
         } else {



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/4eaed926f9d004d553a1e89b81769218e0d38e43

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/4eaed926f9d004d553a1e89b81769218e0d38e43
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.