From 1d3f8617008b7a0864f68075dcc010ef7185a49d Mon Sep 17 00:00:00 2001 From: David Hicks Date: Sat, 8 Aug 2009 14:04:49 +1000 Subject: [PATCH] Fix #10816: projection column shows integer value 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. --- core/columns_api.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/columns_api.php b/core/columns_api.php index 4d906c3bc1..f69fe4ae8b 100644 --- a/core/columns_api.php +++ b/core/columns_api.php @@ -1055,6 +1055,17 @@ function print_column_eta( $p_bug, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE echo '', get_enum_element( 'eta', $p_bug->eta ), ''; } +/** + * + * @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 '', get_enum_element( 'projection', $p_bug->projection ), ''; +} + /** * * @param BugData $p_bug bug obect