From 3b6cc00c368872f774d2314a7951dc220b5b3697 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Sat, 25 Oct 2014 22:14:21 -0700 Subject: [PATCH] Fix php error for undefined t_workflow variable --- manage_config_workflow_set.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manage_config_workflow_set.php b/manage_config_workflow_set.php index f1ab59e1bf..24c60ff701 100644 --- a/manage_config_workflow_set.php +++ b/manage_config_workflow_set.php @@ -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() ); @@ -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 );