From 89fd6b806fa9a278369083146d70ac2b3baf0594 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Fri, 22 Jul 2016 08:10:54 +1000 Subject: [PATCH] Fix updating issues with undefined status Fixes #21375 --- core/print_api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/print_api.php b/core/print_api.php index 09d8c026ca..41bedd25b7 100644 --- a/core/print_api.php +++ b/core/print_api.php @@ -994,7 +994,7 @@ function get_status_option_list( $p_user_auth = 0, $p_current_value = 0, $p_show $t_config_var_value = config_get( 'status_enum_string', null, null, $p_project_id ); $t_enum_workflow = config_get( 'status_enum_workflow', null, null, $p_project_id ); - if( count( $t_enum_workflow ) < 1 ) { + if( count( $t_enum_workflow ) < 1 || !MantisEnum::hasValue( $t_config_var_value, $p_current_value ) ) { # workflow not defined, use default enumeration $t_enum_values = MantisEnum::getValues( $t_config_var_value ); } else {