Skip to content

Commit

Permalink
Fix #11553: Status legend doesn't show final workflow states
Browse files Browse the repository at this point in the history
The status legend at the bottom of the view all issues page doesn't show
the final states in a workflow. This is due to the html_status_legend
function removing any workflow states from status_enum_workflow[STATUS]
which are null/zero length.
  • Loading branch information
davidhicks committed Feb 25, 2010
1 parent 0cc7dde commit 8d5d327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/html_api.php
Expand Up @@ -1228,7 +1228,7 @@ function html_status_legend() {
$t_workflow = config_get( 'status_enum_workflow' );
if( !empty( $t_workflow ) ) {
foreach( $t_status_array as $t_status => $t_name ) {
if( !isset( $t_workflow[$t_status] ) || ( $t_workflow[$t_status] == '' ) ) {
if( !isset( $t_workflow[$t_status] ) ) {

# drop elements that are not in the workflow
unset( $t_status_array[$t_status] );
Expand Down

0 comments on commit 8d5d327

Please sign in to comment.