From: <sy...@us...> - 2008-09-04 15:57:03
|
Revision: 14608 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=14608&view=rev Author: sylvieg Date: 2008-09-04 15:57:14 +0000 (Thu, 04 Sep 2008) Log Message: ----------- [FIX] to have the last choice selected for d option Modified Paths: -------------- trunk/lib/wiki-plugins/wikiplugin_trackerfilter.php Modified: trunk/lib/wiki-plugins/wikiplugin_trackerfilter.php =================================================================== --- trunk/lib/wiki-plugins/wikiplugin_trackerfilter.php 2008-09-04 15:29:45 UTC (rev 14607) +++ trunk/lib/wiki-plugins/wikiplugin_trackerfilter.php 2008-09-04 15:57:14 UTC (rev 14608) @@ -219,7 +219,7 @@ foreach ($field['options_array'] as $val) { $opt['id'] = $val; $opt['name'] = $val; - if (!empty($_REQUEST['f_'.$fieldId]) && $_REQUEST['f_'.$fieldId][0] == $val) { + && ((!is_array($_REQUEST['f_'.$fieldId]) && $_REQUEST['f_'.$fieldId] == $val) || (is_array($_REQUEST['f_'.$fieldId]) && in_array($val, $_REQUEST['f_'.$fieldId])))) { $opt['selected'] = 'y'; $selected = true; } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |