From: <cha...@us...> - 2012-12-31 08:24:38
|
Revision: 44406 http://sourceforge.net/p/tikiwiki/code/44406 Author: changi67 Date: 2012-12-31 08:24:35 +0000 (Mon, 31 Dec 2012) Log Message: ----------- [bp/trunk@44402][FIX] Show missing tracker comments Modified Paths: -------------- branches/10.x/tiki-list_comments.php Modified: branches/10.x/tiki-list_comments.php =================================================================== --- branches/10.x/tiki-list_comments.php 2012-12-31 08:22:53 UTC (rev 44405) +++ branches/10.x/tiki-list_comments.php 2012-12-31 08:24:35 UTC (rev 44406) @@ -50,6 +50,14 @@ $selected_types = array(); foreach ($sections_enabled as $k => $info) { if (isset($_REQUEST['types_section']) && $k != $_REQUEST['types_section']) continue; + // The logic below obviously does not work for tracker comments, so let's handle them in a way that is simpler to understand + if ($k == 'trackers' && $prefs['feature_trackers'] == 'y') { + $show_types['trackeritem'] = 'Tracker Item'; + if ($default_list_value == 'y' || in_array('trackeritem', $requested_types)) { + $selected_types[] = 'trackeritem'; + } + continue; + } foreach ($sections_keys as $stype => $sfeature) { if (isset($info[$sfeature]) && $prefs[$info[$sfeature]] == 'y' && isset($info[$stype])) { $comment_type = $info[$stype]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |