Skip to content

Commit

Permalink
Fix php error for undefined t_workflow variable
Browse files Browse the repository at this point in the history
  • Loading branch information
vboctor committed Oct 26, 2014
1 parent b133ce4 commit 3b6cc00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manage_config_workflow_set.php
Expand Up @@ -101,6 +101,8 @@ function config_get_parent( $p_project, $p_option ) {
}
}

$t_enum_status = MantisEnum::getAssocArrayIndexedByValues( config_get( 'status_enum_string' ) );

# process the workflow by reversing the flags to a matrix and creating the appropriate string
if( config_get_access( 'status_enum_workflow' ) <= $t_access ) {
$f_value = gpc_get( 'flag', array() );
Expand All @@ -111,7 +113,7 @@ function config_get_parent( $p_project, $p_option ) {
list( $t_from, $t_to ) = explode( ':', $t_transition );
$t_matrix[$t_from][$t_to] = '';
}
$t_enum_status = MantisEnum::getAssocArrayIndexedByValues( config_get( 'status_enum_string' ) );
$t_workflow = array();
foreach( $t_enum_status as $t_state => $t_label ) {
$t_workflow_row = '';
$t_default = gpc_get_int( 'default_' . $t_state );
Expand Down

0 comments on commit 3b6cc00

Please sign in to comment.