[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [BP][FIX] calendar: preserve UID across event updates to prevent duplicate invitations

"luci \(@luciash\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69f225f93ff3c_3818f7b820851@gitlab-sidekiq-low-urgency-cpu-bound-v2-646d8cfd6b-trc84.mail>

luci pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki


Commits:
d0e1abbe by Alfred Syatsukwa at 2026-04-29T15:30:49+00:00
[BP][FIX] calendar: preserve UID across event updates to prevent duplicate invitations
---
* [FIX] calendar: preserve UID across event updates to prevent duplicate invitations
---
* [FIX] calendar: preserve UID across event updates to prevent duplicate invitations

See merge request tikiwiki/tiki!9026

(cherry picked from commit 5bc3e4aff8de2eccb189bafbc20dcf7a619b46fa)

See merge request tikiwiki/tiki!10045

- - - - -


1 changed file:

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


Changes:

=====================================
lib/core/Tiki/SabreDav/CaldavClient.php
=====================================
@@ -38,6 +38,11 @@ class CaldavClient
             $uri = Utilities::getCalendarObjectUri($calitem);
             $existing = TikiLib::lib('calendar')->get_item($calitem['calitemId']);
             $calitem['created'] = $existing['created'];
+            // Preserve UID to ensure event updates are recognized correctly by email clients
+            // RFC 5545 requires UID to remain constant throughout event lifecycle
+            if (! empty($existing['uid'])) {
+                $calitem['uid'] = $existing['uid'];
+            }
         }
         $calitem['lastModif'] = time();
         if (! empty($calitem['user'])) {



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

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/d0e1abbeb3144709dbb88e7eb1c67fe5f5c41c43
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.