Commit acdfad6f authored by lphuberdeau's avatar lphuberdeau

[FIX] Rendering issues

parent 28a90c44
......@@ -9,7 +9,11 @@ class Search_Formatter_ValueFormatter_Plain implements Search_Formatter_ValueFor
{
function render($name, $value, array $entry)
{
return $value;
if (is_array($value)) {
return implode(', ', $value);
} else {
return $value;
}
}
}
......@@ -17,8 +17,14 @@ class Search_Formatter_ValueFormatter_Trackerrender implements Search_Formatter_
$field = $tracker->getField(substr($name, 14));
$field['value'] = $value;
$item = array();
if ($entry['object_type'] == 'trackeritem') {
$item['itemId'] = $entry['object_id'];
}
$trklib = TikiLib::lib('trk');
return '~np~' . $trklib->field_render_value(array(
'item' => $item,
'field' => $field,
'process' => 'y',
)) . '~/np~';
......
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