diff --git a/bug_report_advanced_page.php b/bug_report_advanced_page.php index aebd1d3265..9a8d3c2c46 100644 --- a/bug_report_advanced_page.php +++ b/bug_report_advanced_page.php @@ -6,7 +6,7 @@ # See the README and LICENSE files for details # -------------------------------------------------------- - # $Id: bug_report_advanced_page.php,v 1.61 2007-04-20 08:28:22 vboctor Exp $ + # $Id: bug_report_advanced_page.php,v 1.62 2007-05-26 03:32:42 vboctor Exp $ # -------------------------------------------------------- # This file POSTs data to report_bug.php @@ -234,7 +234,18 @@ $f_platform, 'size' => '32', 'maxlength' => '32', 'tabindex' => helper_get_tab_index_value() ) ); + if ( config_get( 'allow_freetext_in_profile_fields' ) == OFF ) { + ?> + + $f_platform, 'size' => '32', 'maxlength' => '32', 'tabindex' => helper_get_tab_index_value() ) ); + } ?> @@ -247,7 +258,18 @@ $f_os, 'size' => '32', 'maxlength' => '32', 'tabindex' => helper_get_tab_index_value() ) ); + if ( config_get( 'allow_freetext_in_profile_fields' ) == OFF ) { + ?> + + $f_os, 'size' => '32', 'maxlength' => '32', 'tabindex' => helper_get_tab_index_value() ) ); + } ?> @@ -260,7 +282,18 @@ $f_os_build, 'size' => '16', 'maxlength' => '16', 'tabindex' => helper_get_tab_index_value() ) ); + if ( config_get( 'allow_freetext_in_profile_fields' ) == OFF ) { + ?> + + $f_os_build, 'size' => '16', 'maxlength' => '16', 'tabindex' => helper_get_tab_index_value() ) ); + } ?> diff --git a/bug_update_advanced_page.php b/bug_update_advanced_page.php index 82ddce26dc..b90672c793 100644 --- a/bug_update_advanced_page.php +++ b/bug_update_advanced_page.php @@ -1,12 +1,12 @@ $t_bug->platform, 'size' => '16', 'maxlength' => '32', 'tabindex' => helper_get_tab_index_value() ) ); + if ( config_get( 'allow_freetext_in_profile_fields' ) == OFF ) { + ?> + + $t_bug->platform, 'size' => '16', 'maxlength' => '32', 'tabindex' => helper_get_tab_index_value() ) ); + } ?> @@ -278,7 +289,18 @@ $t_bug->os, 'size' => '16', 'maxlength' => '32', 'tabindex' => helper_get_tab_index_value() ) ); + if ( config_get( 'allow_freetext_in_profile_fields' ) == OFF ) { + ?> + + $t_bug->os, 'size' => '16', 'maxlength' => '32', 'tabindex' => helper_get_tab_index_value() ) ); + } ?> @@ -306,7 +328,18 @@ $t_bug->os_build, 'size' => '16', 'maxlength' => '16', 'tabindex' => helper_get_tab_index_value() ) ); + if ( config_get( 'allow_freetext_in_profile_fields' ) == OFF ) { + ?> + + $t_bug->os_build, 'size' => '16', 'maxlength' => '16', 'tabindex' => helper_get_tab_index_value() ) ); + } ?> diff --git a/config_defaults_inc.php b/config_defaults_inc.php index 7798ff5235..9a8061fcfd 100644 --- a/config_defaults_inc.php +++ b/config_defaults_inc.php @@ -6,7 +6,7 @@ # See the README and LICENSE files for details # -------------------------------------------------------- - # $Id: config_defaults_inc.php,v 1.334 2007-05-09 17:58:09 prichards Exp $ + # $Id: config_defaults_inc.php,v 1.335 2007-05-26 03:32:42 vboctor Exp $ # -------------------------------------------------------- @@ -1012,9 +1012,6 @@ # Update bugnote threshold (if the bugnote is not your own) $g_update_bugnote_threshold = DEVELOPER; - # Add profile threshold - $g_add_profile_threshold = REPORTER; - # Threshold needed to view project documentation $g_view_proj_doc_threshold = ANYBODY; @@ -1075,9 +1072,6 @@ # $g_bug_readonly_status_threshold. $g_update_readonly_bug_threshold = MANAGER; - # Threshold needed to be able to create and modify global profiles - $g_manage_global_profile_threshold = MANAGER; - # threshold for viewing changelog $g_view_changelog_threshold = VIEWER; @@ -1822,4 +1816,18 @@ # access level required to run reports $g_time_tracking_reporting_threshold = MANAGER; + + ############################# + # Profile Related Settings + ############################# + + # Add profile threshold + $g_add_profile_threshold = REPORTER; + + # Threshold needed to be able to create and modify global profiles + $g_manage_global_profile_threshold = MANAGER; + + # Allows the users to enter free text when reporting/updating issues + # for the profile related fields (i.e. platform, os, os build) + $g_allow_freetext_in_profile_fields = ON; ?>