Commit 02b1a1b3 authored by Jonny Bradley's avatar Jonny Bradley

[FIX] trackers: Handle missing field better (if incorrectly defined in list-type fields)

parent 9799a648
......@@ -742,6 +742,10 @@ class TrackerLib extends TikiLib
$definition = Tracker_Definition::get($trackerId);
$field = $definition->getField($fieldId);
if (!$field) { // could be a deleted field referred to by a list type field
return array(tr('*** ERROR: Field %0 not found ***', $fieldId));
$ret2 = array();
foreach ($ret as $res) {
$k = $res['itemId'];
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