From de31cb6bce1f860d9998335bcca2488543b17a8b 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 bf7852c0f5..6f0b5e69b2 100644 --- a/core/print_api.php +++ b/core/print_api.php @@ -984,7 +984,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 {