[TikiWiki-commits] [Git][tikiwiki/tiki][29.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 | <69a03a701f9cf_3b1877fc1000b3@gitlab-sidekiq-low-urgency-cpu-bound-v2-6ff879c659-zpp2x.mail> |
Victor Emanouilov pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki
Commits:
cbaa0f18 by Victor Emanouilov at 2026-02-26T14:19:35+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
=====================================
@@ -3360,10 +3360,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/cbaa0f1826b0552b99e3833346ba401a3e800bdd
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/cbaa0f1826b0552b99e3833346ba401a3e800bdd
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