Commit 4f56e675 authored by Jonny Bradley's avatar Jonny Bradley

[FIX] trackers: Return the correct value for the current language from...

[FIX] trackers: Return the correct value for the current language from multilingual tracker fields (thanks Bsfez)
parent 7ccbc985
......@@ -63,6 +63,13 @@ class Search_Formatter_ValueFormatter_Trackerrender extends Search_Formatter_Val
return $value;
}
$field = $tracker->getField(substr($name, 14));
// check translations of multilingual fields
global $prefs;
if ($field['isMultilingual'] === 'y' && isset($entry[$name . '_' . $prefs['language']])) {
$name = $name . '_' . $prefs['language'];
$value = $entry[$name];
}
// TextArea fields need the raw wiki syntax here for it to get wiki parsed if necessary
if ($field['type'] === 'a' && isset($entry[$name . '_raw'])) {
$value = $entry[$name . '_raw'];
......
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