Commit 74cfd19b authored by nkoth's avatar nkoth

[bp/r50724][FIX] When listfields (could be via pretty tracker) and filterfield...

[bp/r50724][FIX] When listfields (could be via pretty tracker) and filterfield are both set, and filter field is not in list fields, item that match filter don't show
parent 9dc49198
......@@ -1246,6 +1246,13 @@ class TrackerLib extends TikiLib
$fieldIds[] = $k; // sometimes filterfields are provided with the fieldId only on the array keys
}
}
if (!empty($filterfield)) {
foreach ($filterfield as $f) {
if (!in_array($f, $fieldIds)) {
$fieldIds[] = $f;
}
}
}
if (!empty($fieldIds)) {
$mid .= ' AND ' . $this->in('ttif.fieldId', $fieldIds, $bindvars);
......
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