Index: config_defaults_inc.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/config_defaults_inc.php,v retrieving revision 1.175 diff -u -r1.175 config_defaults_inc.php --- config_defaults_inc.php 13 Jul 2004 12:16:10 -0000 1.175 +++ config_defaults_inc.php 14 Jul 2004 02:57:57 -0000 @@ -1013,6 +1017,9 @@ $g_severity_enum_string = '10:feature,20:trivial,30:text,40:tweak,50:minor,60:major,70:crash,80:block'; $g_reproducibility_enum_string = '10:always,30:sometimes,50:random,70:have not tried,90:unable to duplicate,100:N/A'; $g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved,90:closed'; + # The status pulldown is a mask that allows the items listed to show up in the menu on the + # bug update page. + $g_status_pulldown_enum_string = $g_status_enum_string; $g_resolution_enum_string = '10:open,20:fixed,30:reopened,40:unable to duplicate,50:not fixable,60:duplicate,70:not a bug,80:suspended,90:wont fix'; $g_projection_enum_string = '10:none,30:tweak,50:minor fix,70:major rework,90:redesign'; $g_eta_enum_string = '10:none,20:< 1 day,30:2-3 days,40:< 1 week,50:< 1 month,60:> 1 month'; Index: core/print_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/print_api.php,v retrieving revision 1.91 diff -u -r1.91 print_api.php --- core/print_api.php 13 Jul 2004 12:16:11 -0000 1.91 +++ core/print_api.php 14 Jul 2004 02:57:58 -0000 @@ -590,6 +590,7 @@ $t_config_var_name = $p_enum_name . '_enum_string'; $t_config_var_value = config_get( $t_config_var_name ); $t_enum_workflow = config_get( $p_enum_name . '_enum_workflow' ); + $t_mask_arr = explode_enum_string( config_get( 'status_pulldown_enum_string' ) ); if ( count( $t_enum_workflow ) < 1 ) { # workflow not defined, use default enum @@ -602,11 +603,13 @@ $t_enum_count = count( $t_arr ); for ( $i = 0; $i < $t_enum_count; $i++ ) { - $t_elem = explode_enum_arr( $t_arr[$i] ); - $t_elem2 = get_enum_element( $p_enum_name, $t_elem[0] ); - echo ""; + if ( in_array($t_arr[$i], $t_mask_arr) ) { + $t_elem = explode_enum_arr( $t_arr[$i] ); + $t_elem2 = get_enum_element( $p_enum_name, $t_elem[0] ); + echo ""; + } } # end for } # --------------------