From: <gi...@ma...> - 2009-01-15 04:09:19
|
The branch, master-1.2.0a3 has been updated via 7655e97fed1a3fcdd8c0d817791e895b683f3590 (commit) from 0b6729d603c2353fdbd1bc56b3f0f9fbfc2f00e4 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 7655e97fed1a3fcdd8c0d817791e895b683f3590 Author: Glenn Henshaw <thr...@lo...> Date: Wed Jan 14 23:05:54 2009 -0500 fixed bug #5263: Add the ability to report issues in unreleased product - based on patch submitted by swebster ----------------------------------------------------------------------- Summary of changes: bug_report_advanced_page.php | 7 ++++++- bug_report_page.php | 7 ++++++- bug_update_advanced_page.php | 7 ++++++- bug_update_page.php | 7 ++++++- config_defaults_inc.php | 6 ++++++ 5 files changed, 30 insertions(+), 4 deletions(-) ----------------------------------------------------------------------- commit 7655e97fed1a3fcdd8c0d817791e895b683f3590 Author: Glenn Henshaw <thr...@lo...> Date: Wed Jan 14 23:05:54 2009 -0500 fixed bug #5263: Add the ability to report issues in unreleased product - based on patch submitted by swebster diff --git a/bug_report_advanced_page.php b/bug_report_advanced_page.php index 84c5a98..947e798 100644 --- a/bug_report_advanced_page.php +++ b/bug_report_advanced_page.php @@ -366,6 +366,11 @@ || ( ( AUTO == config_get( 'show_product_version' ) ) && ( count( version_get_all_rows( $t_project_id ) ) > 0 ) ); if ( $t_show_version ) { + $t_product_version_released_mask = VERSION_RELEASED; + + if (access_has_project_level( config_get( 'report_issues_for_unreleased_versions_threshold' ) ) ) { + $t_product_version_released_mask = VERSION_ALL; + } ?> <!-- Product Version --> <tr <?php echo helper_alternate_class() ?>> @@ -374,7 +379,7 @@ </td> <td> <select <?php echo helper_get_tab_index() ?> name="product_version"> - <?php print_version_option_list( $f_product_version, $t_project_id, VERSION_RELEASED ) ?> + <?php print_version_option_list( $f_product_version, $t_project_id, $t_product_version_released_mask ) ?> </select> </td> </tr> diff --git a/bug_report_page.php b/bug_report_page.php index 0b5be28..d0c003e 100644 --- a/bug_report_page.php +++ b/bug_report_page.php @@ -211,6 +211,11 @@ || ( ( AUTO == config_get( 'show_product_version' ) ) && ( count( version_get_all_rows( $t_project_id ) ) > 0 ) ); if ( $t_show_version ) { + $t_product_version_released_mask = VERSION_RELEASED; + + if (access_has_project_level( config_get( 'report_issues_for_unreleased_versions_threshold' ) ) ) { + $t_product_version_released_mask = VERSION_ALL; + } ?> <!-- Product Version --> <tr <?php echo helper_alternate_class() ?>> @@ -219,7 +224,7 @@ </td> <td> <select <?php echo helper_get_tab_index() ?> name="product_version"> - <?php print_version_option_list( $f_product_version, $t_project_id, VERSION_RELEASED ) ?> + <?php print_version_option_list( $f_product_version, $t_project_id, $t_product_version_released_mask ); ?> </select> </td> </tr> diff --git a/bug_update_advanced_page.php b/bug_update_advanced_page.php index 99e03a7..13d1805 100644 --- a/bug_update_advanced_page.php +++ b/bug_update_advanced_page.php @@ -392,6 +392,11 @@ || ( ( AUTO == config_get( 'show_product_version' ) ) && ( count( version_get_all_rows( $t_bug->project_id ) ) > 0 ) ); if ( $t_show_version ) { + $t_product_version_released_mask = VERSION_RELEASED; + + if (access_has_project_level( config_get( 'report_issues_for_unreleased_versions_threshold' ) ) ) { + $t_product_version_released_mask = VERSION_ALL; + } echo lang_get( 'fixed_in_version' ); } ?> @@ -423,7 +428,7 @@ if ( $t_show_version ) { ?> <select <?php echo helper_get_tab_index() ?> name="version"> - <?php print_version_option_list( $t_bug->version, $t_bug->project_id, VERSION_RELEASED ) ?> + <?php print_version_option_list( $t_bug->version, $t_bug->project_id, $t_product_version_released_mask ); ?> </select> <?php } else { diff --git a/bug_update_page.php b/bug_update_page.php index e0a9f2e..ab8aac3 100644 --- a/bug_update_page.php +++ b/bug_update_page.php @@ -271,6 +271,11 @@ || ( ( AUTO == config_get( 'show_product_version' ) ) && ( count( version_get_all_rows( $t_bug->project_id ) ) > 0 ) ); if ( $t_show_version ) { + $t_product_version_released_mask = VERSION_RELEASED; + + if (access_has_project_level( config_get( 'report_issues_for_unreleased_versions_threshold' ) ) ) { + $t_product_version_released_mask = VERSION_ALL; + } ?> <!-- Product Version --> <td class="category"> @@ -278,7 +283,7 @@ </td> <td> <select <?php echo helper_get_tab_index() ?> name="version"> - <?php print_version_option_list( $t_bug->version, $t_bug->project_id, VERSION_RELEASED ) ?> + <?php print_version_option_list( $t_bug->version, $t_bug->project_id, $t_product_version_released_mask ); ?> </select> </td> </tr> diff --git a/config_defaults_inc.php b/config_defaults_inc.php index 2b19372..45d285b 100644 --- a/config_defaults_inc.php +++ b/config_defaults_inc.php @@ -2115,6 +2115,12 @@ $g_reopen_bug_threshold = DEVELOPER; /** + * access level needed to assign bugs to unreleased product versions + * @global int $g_report_issues_for_unreleased_versions_threshold + */ + $g_report_issues_for_unreleased_versions_threshold = DEVELOPER; + + /** * access level needed to set a bug sticky * @global int $g_set_bug_sticky_threshold */ ----------------------------------------------------------------------- -- Mantis Bug Tracker |