Skip to content

Commit 241ae23

Browse files
committedMar 26, 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 d450869 commit 241ae23

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
@@ -893,6 +893,11 @@ function bug_check_workflow( $p_bug_status, $p_wanted_status ) {
893893
return true;
894894
}
895895

896+
# There should always be a possible next status, if not defined, then allow all.
897+
if ( !isset( $t_status_enum_workflow[$p_bug_status] ) ) {
898+
return true;
899+
}
900+
896901
# workflow defined - find allowed states
897902
$t_allowed_states = $t_status_enum_workflow[$p_bug_status];
898903

0 commit comments

Comments
 (0)
Please sign in to comment.