[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] calendar: preserve UID across event updates to prevent duplicate invitations
Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6917aa14a6a49_2ae2b6c2411c@gitlab-sidekiq-low-urgency-cpu-bound-v2-867694976-jjhl5.mail> |
Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
5bc3e4af by Alfred Syatsukwa at 2025-11-14T22:07:45+00:00
[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
- - - - -
1 changed file:
- lib/core/Tiki/SabreDav/CaldavClient.php
Changes:
=====================================
lib/core/Tiki/SabreDav/CaldavClient.php
=====================================
@@ -39,6 +39,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/5bc3e4aff8de2eccb189bafbc20dcf7a619b46fa
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/5bc3e4aff8de2eccb189bafbc20dcf7a619b46fa
You're receiving this email because of your account on gitlab.com.
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs