[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] add missing event params to update tracker event when removing...

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69a03a646f72b_3b18774821960@gitlab-sidekiq-low-urgency-cpu-bound-v2-6ff879c659-nsplh.mail>

Victor Emanouilov pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
c9a28d9e by Victor Emanouilov at 2026-02-26T14:19:22+02:00
[FIX] add missing event params to update tracker event when removing references of deleted tracker item

- - - - -


1 changed file:

- lib/trackers/trackerlib.php


Changes:

=====================================
lib/trackers/trackerlib.php
=====================================
@@ -3288,10 +3288,19 @@ class TrackerLib extends TikiLib
 
         $events = TikiLib::events();
         foreach ($itemIds as $itemId) {
+            $res = $this->items()->fetchFullRow(['itemId' => (int) $itemId]);
+            if (! $res) {
+                continue;
+            }
             $events->trigger('tiki.trackeritem.update', [
                 'type' => 'trackeritem',
                 'object' => $itemId,
+                'trackerId' => $res['trackerId'],
                 'user' => $GLOBALS['user'],
+                'values' => [],
+                'old_values' => [],
+                'values_by_permname' => [],
+                'old_values_by_permname' => [],
             ]);
         }
     }



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

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