From: Glenn H. <thr...@us...> - 2005-04-05 17:11:05
|
Update of /cvsroot/mantisbt/mantisbt/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30972/core Modified Files: filter_api.php Log Message: fix for 0005403: 'Show Sticky Issues' is always displayed 'on' in view_all_bug_page.php. Index: filter_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/filter_api.php,v retrieving revision 1.95 retrieving revision 1.96 diff -u -d -r1.95 -r1.96 --- filter_api.php 3 Apr 2005 12:43:34 -0000 1.95 +++ filter_api.php 5 Apr 2005 17:10:54 -0000 1.96 @@ -1490,8 +1490,11 @@ <input type="hidden" name="view_state" value="<?php echo $t_filter['view_state'];?>" /> </td> <td class="small-caption" valign="top" id="sticky_issues_filter_target"> - <?php PRINT ($t_filter['sticky_issues'] ? 'on' : 'off' ) ?> - <input type="hidden" name="sticky_issues" value="<?php echo ($t_filter['sticky_issues'] ? 'on' : 'off' );?>" /> + <?php + $t_sticky_filter_state = gpc_string_to_bool( $t_filter['sticky_issues'] ) ? 'on' : 'off' ; + PRINT $t_sticky_filter_state; + ?> + <input type="hidden" name="sticky_issues" value="<?php echo $t_sticky_filter_state;?>" /> </td> <td class="small-caption" valign="top" id="highlight_changed_filter_target"> <?php PRINT $t_filter['highlight_changed']; ?> @@ -2459,7 +2462,7 @@ function print_filter_sticky_issues(){ global $t_filter; ?><!-- Show or hide sticky bugs --> - <input type="checkbox" name="sticky_issues" <?php check_checked( $t_filter['sticky_issues'], 'on' ); ?> /> + <input type="checkbox" name="sticky_issues" <?php check_checked( gpc_string_to_bool( $t_filter['sticky_issues'] ), 'on' ); ?> /> <?php } |