--- ./view_all_set.php 2010-09-14 14:40:10.000000000 +1000 +++ ../../Development/Mentor/mantis/view_all_set.php 2010-11-10 17:53:08.000000000 +1100 @@ -106,6 +106,21 @@ $f_hide_status = array( $f_hide_status ); } + if ($f_view_type == 'advanced') { + # advanced filtering: remove all stati above or equal the lowest selected hide status value from the show status list + sort($f_hide_status); + if (count($f_hide_status) && $f_hide_status[0] > 1) { + $t_show_status = (filter_field_is_any($f_show_status)) ? MantisEnum::getValues( config_get( 'status_enum_string' ) ) : $f_show_status; + $f_show_status = array(); + foreach( $t_show_status as $t_this_show_status ) { + if( $t_this_show_status < $f_hide_status[0] ) { + $f_show_status[] = $t_this_show_status; + } + } + $f_hide_status = array(); + } + } + $f_reporter_id = array(); if ( is_array( gpc_get( FILTER_PROPERTY_REPORTER_ID, null ) ) ) { $f_reporter_id = gpc_get_string_array( FILTER_PROPERTY_REPORTER_ID, META_FILTER_ANY );