[thirdparty-commits] jpeeler: mantis/trunk r55 - /mantis/trunk/core/columns_api.php

SVN commits to the Digium third-party software repository thirdparty-commits at lists.digium.com
Tue Jan 20 16:37:51 CST 2009


Author: jpeeler
Date: Tue Jan 20 16:37:51 2009
New Revision: 55

URL: http://svn.digium.com/svn-view/thirdparty?view=rev&rev=55
Log:
Define a default value for parameter support level mode in several places so the rest of the code is not effected by our custom changes. Fixes errors on CSV exporting of issues.


Modified:
    mantis/trunk/core/columns_api.php

Modified: mantis/trunk/core/columns_api.php
URL: http://svn.digium.com/svn-view/thirdparty/mantis/trunk/core/columns_api.php?view=diff&rev=55&r1=54&r2=55
==============================================================================
--- mantis/trunk/core/columns_api.php (original)
+++ mantis/trunk/core/columns_api.php Tue Jan 20 16:37:51 2009
@@ -39,7 +39,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_id( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_id( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'id' ), 'id', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -52,7 +52,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_project_id( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_project_id( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'email_project' ), 'project_id', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -78,7 +78,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_reporter_id( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_reporter_id( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'reporter' ), 'reporter_id', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -91,7 +91,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_handler_id( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_handler_id( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'assigned_to' ), 'handler_id', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -104,7 +104,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_priority( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_priority( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'priority_abbreviation' ), 'priority', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -117,7 +117,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_reproducibility( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_reproducibility( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'reproducibility' ), 'reproducibility', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -130,7 +130,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_projection( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_projection( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'projection' ), 'projection', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -143,7 +143,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_eta( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_eta( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'eta' ), 'eta', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -156,7 +156,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_resolution( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_resolution( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'resolution' ), 'resolution', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -169,7 +169,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_fixed_in_version( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_fixed_in_version( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'fixed_in_version' ), 'fixed_in_version', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -195,7 +195,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_view_state( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_view_state( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'view_status' ), 'view_state', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -220,7 +220,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_os( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_os( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'os' ), 'os', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -233,7 +233,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_os_build( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_os_build( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'os_version' ), 'os_build', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -246,7 +246,7 @@
 
 	# --------------------
 	# $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, $p_support_levels_mode ) {
+	function print_column_title_platform( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'platform' ), 'platform', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -259,7 +259,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_version( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_version( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'product_version' ), 'version', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -272,7 +272,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_date_submitted( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_date_submitted( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'date_submitted' ), 'date_submitted', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -301,7 +301,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_category( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_category( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'category' ), 'category', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -314,7 +314,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_sponsorship_total( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_sponsorship_total( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL ) {
 		$t_enable_sponsorship = config_get( 'enable_sponsorship' );
 
 		if ( ON == $t_enable_sponsorship ) {
@@ -331,7 +331,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_severity( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_severity( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'severity' ), 'severity', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -344,7 +344,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_status( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_status( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'status' ), 'status', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -357,7 +357,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_last_updated( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_last_updated( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'updated' ), 'last_updated', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -370,7 +370,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_title_summary( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_title_summary( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
 			echo '<td>';
 			print_view_bug_sort_link( lang_get( 'summary' ), 'summary', $p_sort, $p_dir, $p_columns_target, $p_support_levels_mode );
@@ -530,7 +530,7 @@
 
 	# --------------------
 	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
-	function print_column_category( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode ) {
+	function print_column_category( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE, $p_support_levels_mode = NULL) {
 		global $t_sort, $t_dir;
 
 		# grab the project name




More information about the thirdparty-commits mailing list