Skip to content

Commit

Permalink
Fix updating issues with undefined status
Browse files Browse the repository at this point in the history
Fixes #21375
  • Loading branch information
vboctor committed Jul 31, 2016
1 parent b0a64aa commit 89fd6b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/print_api.php
Expand Up @@ -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 {
Expand Down

0 comments on commit 89fd6b8

Please sign in to comment.