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 3c4c165 commit de31cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/print_api.php
Expand Up @@ -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 {
Expand Down

0 comments on commit de31cb6

Please sign in to comment.