Skip to content

Commit

Permalink
Fixed #8874: Provide the ability to add "build" column to View Issues…
Browse files Browse the repository at this point in the history
…, Print Issues, and CSV export.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@4982 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed Feb 10, 2008
1 parent af06cdb commit ee9dc4d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config_defaults_inc.php
Expand Up @@ -522,7 +522,7 @@
#
# Standard Column Names (i.e. names to choose from):
# selection, edit, id, project_id, reporter_id, handler_id, priority, reproducibility, projection, eta,
# resolution, fixed_in_version, view_state, os, os_build, platform, version, date_submitted, attachment,
# resolution, fixed_in_version, view_state, os, os_build, build (for product build), platform, version, date_submitted, attachment,
# category, sponsorship_total, severity, status, last_updated, summary, bugnotes_count
$g_view_issues_page_columns = array ( 'selection', 'edit', 'priority', 'id', 'sponsorship_total', 'bugnotes_count', 'attachment', 'category', 'severity', 'status', 'last_updated', 'summary' );

Expand Down
15 changes: 15 additions & 0 deletions core/columns_api.php
Expand Up @@ -232,6 +232,19 @@ function print_column_title_os_build( $p_sort, $p_dir, $p_columns_target = COLUM
}
}

# --------------------
# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
function print_column_title_build( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
echo '<td>';
print_view_bug_sort_link( lang_get( 'build' ), 'build', $p_sort, $p_dir, $p_columns_target );
print_sort_icon( $p_dir, $p_sort, 'build' );
echo '</td>';
} else {
echo lang_get( 'build' );
}
}

# --------------------
# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
function print_column_title_platform( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
Expand Down Expand Up @@ -422,7 +435,9 @@ function print_column_priority( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_
if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
echo '<td>';
if ( ON == config_get( 'show_priority_text' ) ) {
echo '<center>';
print_formatted_priority_string( $p_row['status'], $p_row['priority'] );
echo '</center>';
} else {
print_status_icon( $p_row['priority'] );
}
Expand Down
6 changes: 6 additions & 0 deletions core/csv_api.php
Expand Up @@ -172,6 +172,12 @@ function csv_format_os_build( $p_os_build ) {
return csv_escape_string( $p_os_build );
}

# --------------------
# return the os build (os version)
function csv_format_build( $p_build ) {
return csv_escape_string( $p_build );
}

# --------------------
# return the platform
function csv_format_platform( $p_platform ) {
Expand Down

0 comments on commit ee9dc4d

Please sign in to comment.