Skip to content

Commit

Permalink
Fix #10816: projection column shows integer value
Browse files Browse the repository at this point in the history
When you enable the projection column through
account_manage_columns_page, the view issues list only shows the integer
value of the projection field rather than the string/text value.

This fixes the problem by adding the missing print_column_projection
function that does the integer value -> enum string lookup.
  • Loading branch information
davidhicks committed Aug 8, 2009
1 parent dccaf9a commit 1d3f861
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions core/columns_api.php
Expand Up @@ -1055,6 +1055,17 @@ function print_column_eta( $p_bug, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE
echo '<td class="center">', get_enum_element( 'eta', $p_bug->eta ), '</td>';
}

/**
*
* @param BugData $p_bug bug object
* @param int $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
* @return null
* @access public
*/
function print_column_projection( $p_bug, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
echo '<td class="center">', get_enum_element( 'projection', $p_bug->projection ), '</td>';
}

/**
*
* @param BugData $p_bug bug obect
Expand Down

0 comments on commit 1d3f861

Please sign in to comment.