Commit 7ed9245d authored by Jonny Bradley's avatar Jonny Bradley

[FIX] trackers: Show an error if a tracker item in in ItemLink's list cannot...

[FIX] trackers: Show an error if a tracker item in in ItemLink's list cannot be initialised for some reason (on the next page load when in a modal, but better than nothing)
parent ea228081
......@@ -925,7 +925,11 @@ class TrackerLib extends TikiLib
$itemObject = Tracker_Item::fromId($itemId);
if ($itemObject->canView()) {
if (! $itemObject) {
Feedback::error(tr('TrackerLib::get_all_items: No item for itemId %0', $itemId), 'session');
} else if ($itemObject->canView()) {
$field['value'] = $res['value'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment