From: <jon...@us...> - 2010-12-06 19:51:21
|
Revision: 31214 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=31214&view=rev Author: jonnybradley Date: 2010-12-06 19:51:15 +0000 (Mon, 06 Dec 2010) Log Message: ----------- [FIX] browsertitle: Tracker Items: Use all isMain fields in title, not just the first one Modified Paths: -------------- branches/6.x/tiki-view_tracker_item.php Modified: branches/6.x/tiki-view_tracker_item.php =================================================================== --- branches/6.x/tiki-view_tracker_item.php 2010-12-06 19:49:34 UTC (rev 31213) +++ branches/6.x/tiki-view_tracker_item.php 2010-12-06 19:51:15 UTC (rev 31214) @@ -736,6 +736,7 @@ } $last = array(); $lst = ''; + $tracker_item_main_value = ''; foreach($xfields["data"] as $i => $array) { if ($xfields["data"][$i]['isHidden'] == 'n' or $xfields["data"][$i]['isHidden'] == 'p' or $tiki_p_admin_trackers == 'y' or ($xfields["data"][$i]['type'] == 's' and $xfields[$i]['name'] == 'Rating' and $tiki_p_tracker_view_ratings == 'y') or ($xfields['data'][$i]['isHidden'] == 'c' && !empty($user) && $user == $itemUser)) { $fields["data"][$i] = $xfields["data"][$i]; @@ -991,12 +992,14 @@ } } } - if ($fields['data'][$i]['isMain'] == 'y' && empty($tracker_item_main_value)) { - $tracker_item_main_value = $ins_fields['data'][$i]['value']; - $smarty->assign('tracker_item_main_value', $ins_fields['data'][$i]['value']); + if ($fields['data'][$i]['isMain'] == 'y') { + $tracker_item_main_value .= (empty($tracker_item_main_value) ? '' : ' ') . $ins_fields['data'][$i]['value']; } } } + if (!empty($tracker_item_main_value)) { + $smarty->assign('tracker_item_main_value', $tracker_item_main_value); + } } //restore types values if there is an error if (isset($error)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |