diff --git a/bug_report_page.php b/bug_report_page.php index eb3a180..95d3ec7 100644 --- a/bug_report_page.php +++ b/bug_report_page.php @@ -498,7 +498,7 @@ - + ' . lang_get( 'bug' ) . ' ' . bug_format_id( $f_master_bug_id ) . '' ?> diff --git a/config_defaults_inc.php b/config_defaults_inc.php index 59b4764..8b8dceb 100644 --- a/config_defaults_inc.php +++ b/config_defaults_inc.php @@ -1159,6 +1159,12 @@ $g_default_bug_eta = ETA_NONE; /** + * Default relationship between a new bug and its parent when cloning it + * @global int $g_default_bug_relationship_clone + */ + $g_default_bug_relationship_clone = BUG_REL_NONE; + + /** * Default global category to be used when an issue is moved from a project to another * that doesn't have a category with a matching name. The default is 1 which is the "General" * category that is created in the default database. diff --git a/core/constant_inc.php b/core/constant_inc.php index 982fcf0..2db57f9 100644 --- a/core/constant_inc.php +++ b/core/constant_inc.php @@ -200,6 +200,8 @@ define( 'REV_ADDITIONAL_INFO', 3 ); define( 'REV_BUGNOTE', 4 ); # bug relationship constants +define( 'BUG_REL_NONE', -2 ); +define( 'BUG_REL_ANY', -1 ); define( 'BUG_DUPLICATE', 0 ); define( 'BUG_RELATED', 1 ); define( 'BUG_DEPENDANT', 2 ); diff --git a/core/relationship_api.php b/core/relationship_api.php index b0949ea..0f33222 100644 --- a/core/relationship_api.php +++ b/core/relationship_api.php @@ -772,17 +772,17 @@ function relationship_get_summary_text( $p_bug_id ) { * @param int $p_bug_id Bug id * @return null */ -function relationship_list_box( $p_default_rel_type = -1, $p_select_name = "rel_type", $p_include_any = false, $p_include_none = false ) { +function relationship_list_box( $p_default_rel_type = BUG_REL_ANY, $p_select_name = "rel_type", $p_include_any = false, $p_include_none = false ) { global $g_relationships; ?> - +