View Issue Details

IDProjectCategoryView StatusLast Update
0005700mantisbtfilterspublic2005-07-23 02:31
Reporterpolzin Assigned Tothraxisp  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Product Versiongit trunk 
Fixed in Version1.0.0rc1 
Summary0005700: Hide Status of "none" doesn't render properly for old filters
Description

Even the fix for 0005687 has a problem with filters saved with older versions of mantis. See attachment.

TagsNo tags attached.
Attached Files
filter_api.patch (750 bytes)   
Index: core/filter_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/filter_api.php,v
retrieving revision 1.112
diff -u -r1.112 filter_api.php
--- core/filter_api.php	1 Jun 2005 01:38:03 -0000	1.112
+++ core/filter_api.php	3 Jun 2005 11:12:26 -0000
@@ -1398,7 +1398,8 @@
 								if ( 'simple' == $t_view_type ) {
 									$t_output = '';
 									$t_none_found = false;
-									if ( count( $t_filter['hide_status'] ) == 0 ) {
+									# 2b, fix for old filters
+									if ( count( $t_filter['hide_status'] ) == 0  || $t_filter['hide_status'][0] == META_FILTER_ANY ) {
 										PRINT lang_get( 'none' );
 									} else {
 										$t_first_flag = true;
filter_api.patch (750 bytes)   

Relationships

child of 0005460 closedvboctor Critical Issues to Fix for Mantis 1.0.0 Release 

Activities

polzin

polzin

2005-06-03 07:13

reporter   ~0010345

I attach a patch for this.

thraxisp

thraxisp

2005-06-03 10:05

reporter   ~0010347

Fixed in CVS.

core/filter_api.php -> 1.113