[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [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 | <69a03a77a99ec_3b18773483497@gitlab-sidekiq-low-urgency-cpu-bound-v2-6ff879c659-z7ggw.mail> |
Victor Emanouilov pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki
Commits:
3e0516e2 by Victor Emanouilov at 2026-02-26T14:19:47+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
=====================================
@@ -3320,10 +3320,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/3e0516e23bebb5207c882136feebb2ce3e3025f6
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/3e0516e23bebb5207c882136feebb2ce3e3025f6
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