Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ecf22ae

Browse files
committedMar 7, 2012
Fixes #14013: System notice in bug_check_workflow().
If the status workflow is defined, but there is no corresponding entry to the current state, then allow all statuses. The reasoning is that there should always be at least one possible next status.
1 parent a817c2c commit ecf22ae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎core/bug_api.php

+5
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,11 @@ function bug_check_workflow( $p_bug_status, $p_wanted_status ) {
878878
return true;
879879
}
880880

881+
# There should always be a possible next status, if not defined, then allow all.
882+
if ( !isset( $t_status_enum_workflow[$p_bug_status] ) ) {
883+
return true;
884+
}
885+
881886
# workflow defined - find allowed states
882887
$t_allowed_states = $t_status_enum_workflow[$p_bug_status];
883888

0 commit comments

Comments
 (0)
Please sign in to comment.