View Issue Details

IDProjectCategoryView StatusLast Update
0006288mantisbtfilterspublic2006-02-04 05:54
Reporterpardini Assigned Tothraxisp  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Versiongit trunk 
Fixed in Version1.0.0rc3 
Summary0006288: Patch against CVS HEAD for Saved filter problem with view_state
Description

Related to Issue 0006280, after getting new filter_api.php from CVS head, problem with view_state persists when using a filter which was saved with 1.0.0rc1.
Attached patch is very simple and fixes the problem, or so I hope.

TagsNo tags attached.
Attached Files
filter_api.php.patch (762 bytes)   
Index: core/filter_api.php
===================================================================
RCS file: /var/lib/cvs/mantis/core/filter_api.php,v
retrieving revision 1.4
diff -u -r1.4 filter_api.php
--- core/filter_api.php	22 Sep 2005 01:58:38 -0000	1.4
+++ core/filter_api.php	22 Sep 2005 05:15:34 -0000
@@ -176,7 +176,7 @@
 			}
 		} else {
 			$t_view_state = db_prepare_int( $t_filter['view_state'] );
-			if ( ( $t_filter['view_state'] != META_FILTER_ANY ) && ( !is_blank( $t_filter['view_state'] ) ) ) {
+			if ( ( $t_filter['view_state'] != META_FILTER_ANY ) && ( !is_blank( $t_filter['view_state'] ) ) && ( $t_filter['view_state'] != "0" ) ) {
 				array_push( $t_where_clauses, "($t_bug_table.view_state='$t_view_state')" );
 			}
 		}
filter_api.php.patch (762 bytes)   

Activities

ryandesign

ryandesign

2005-09-22 11:25

reporter   ~0011428

thraxisp, can you check this, since it relates to your fix in 0006234?

thraxisp

thraxisp

2005-10-02 17:43

reporter   ~0011461

fixed in CVS on 1.0.0rc3 branch and HEAD

core/filter_api.php -> 1.122.2.2 or 1.125