From 974a76287c8cb2616cffca66afbf1a025935c2bf Mon Sep 17 00:00:00 2001 From: jctrosset Date: Fri, 2 Aug 2002 08:25:15 +0000 Subject: [PATCH] Added custom attributes support for Summary and charts. git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1183 f5dc347c-c33d-0410-90a0-b07cc1902cb9 --- summary_graph_bycategory.php | 9 ++++++ summary_graph_bycategory_pct.php | 7 +++++ summary_graph_bypriority.php | 9 ++++++ summary_graph_bypriority_mix.php | 8 ++++++ summary_graph_bypriority_pct.php | 7 +++++ summary_graph_byresolution.php | 9 ++++++ summary_graph_byresolution_mix.php | 9 +++++- summary_graph_byresolution_pct.php | 8 ++++++ summary_graph_byseverity.php | 9 ++++++ summary_graph_byseverity_mix.php | 8 ++++++ summary_graph_byseverity_pct.php | 8 ++++++ summary_graph_bystatus.php | 9 ++++++ summary_graph_bystatus_pct.php | 9 ++++++ summary_graph_imp_status.php | 2 +- summary_page.php | 44 +++++++++++++++++++++++++++--- 15 files changed, 149 insertions(+), 6 deletions(-) diff --git a/summary_graph_bycategory.php b/summary_graph_bycategory.php index eb34611f01..3ccc4262e3 100644 --- a/summary_graph_bycategory.php +++ b/summary_graph_bycategory.php @@ -1,6 +1,15 @@ \ No newline at end of file diff --git a/summary_graph_bycategory_pct.php b/summary_graph_bycategory_pct.php index 854b188693..432c0ffa65 100644 --- a/summary_graph_bycategory_pct.php +++ b/summary_graph_bycategory_pct.php @@ -2,7 +2,14 @@ include( 'core_API.php' ); include( $g_summary_jpgraph_function ); +if ($g_customize_attributes) { + # to be deleted when moving to manage_project_page.php + $t_project_id = '0000000'; + # custom attributes insertion + insert_attributes( 'category', $t_project_id, 'global' ); + insert_attributes( 'category', $t_project_id, 'str' ) ; +} create_category_summary_pct(); graph_category_summary_pct($s_by_category_pct); ?> \ No newline at end of file diff --git a/summary_graph_bypriority.php b/summary_graph_bypriority.php index da8317fdeb..e81b868bd2 100644 --- a/summary_graph_bypriority.php +++ b/summary_graph_bypriority.php @@ -1,6 +1,15 @@ \ No newline at end of file diff --git a/summary_graph_bypriority_mix.php b/summary_graph_bypriority_mix.php index f78fdce914..72a003ed3b 100644 --- a/summary_graph_bypriority_mix.php +++ b/summary_graph_bypriority_mix.php @@ -4,6 +4,14 @@ $height=80; +if ($g_customize_attributes) { + # to be deleted when moving to manage_project_page.php + $t_project_id = '0000000'; + + # custom attributes insertion + insert_attributes( 'priority', $t_project_id, 'global' ); + insert_attributes( 'priority', $t_project_id, 'str' ) ; +} enum_bug_group( $s_priority_enum_string, 'priority'); graph_group($s_by_priority_mix); ?> \ No newline at end of file diff --git a/summary_graph_bypriority_pct.php b/summary_graph_bypriority_pct.php index 6c1219d331..6967dc3101 100644 --- a/summary_graph_bypriority_pct.php +++ b/summary_graph_bypriority_pct.php @@ -9,7 +9,14 @@ $poshorizontal = 0.03; $posvertical = 0.09; +if ($g_customize_attributes) { + # to be deleted when moving to manage_project_page.php + $t_project_id = '0000000'; + # custom attributes insertion + insert_attributes( 'priority', $t_project_id, 'global' ); + insert_attributes( 'priority', $t_project_id, 'str' ) ; +} create_bug_enum_summary_pct($s_priority_enum_string, 'priority'); graph_bug_enum_summary_pct($s_by_priority_pct); ?> \ No newline at end of file diff --git a/summary_graph_byresolution.php b/summary_graph_byresolution.php index e08a536905..e16705b7d8 100644 --- a/summary_graph_byresolution.php +++ b/summary_graph_byresolution.php @@ -1,6 +1,15 @@ \ No newline at end of file diff --git a/summary_graph_byresolution_mix.php b/summary_graph_byresolution_mix.php index 5b0c08eb39..e7b9bd9f81 100644 --- a/summary_graph_byresolution_mix.php +++ b/summary_graph_byresolution_mix.php @@ -1,10 +1,17 @@ \ No newline at end of file diff --git a/summary_graph_byseverity.php b/summary_graph_byseverity.php index b1e4429f72..823eaadbef 100644 --- a/summary_graph_byseverity.php +++ b/summary_graph_byseverity.php @@ -1,6 +1,15 @@ \ No newline at end of file diff --git a/summary_graph_byseverity_mix.php b/summary_graph_byseverity_mix.php index 867b2e7fbe..52c5464b2a 100644 --- a/summary_graph_byseverity_mix.php +++ b/summary_graph_byseverity_mix.php @@ -4,6 +4,14 @@ $height=100; +if ($g_customize_attributes) { + # to be deleted when moving to manage_project_page.php + $t_project_id = '0000000'; + + # custom attributes insertion + insert_attributes( 'severity', $t_project_id, 'global' ); + insert_attributes( 'severity', $t_project_id, 'str' ) ; +} enum_bug_group($s_severity_enum_string, 'severity'); graph_group($s_by_severity_mix); diff --git a/summary_graph_byseverity_pct.php b/summary_graph_byseverity_pct.php index 539100bcfd..1e6a99a481 100644 --- a/summary_graph_byseverity_pct.php +++ b/summary_graph_byseverity_pct.php @@ -9,6 +9,14 @@ $poshorizontal = 0.10; $posvertical = 0.09; +if ($g_customize_attributes) { + # to be deleted when moving to manage_project_page.php + $t_project_id = '0000000'; + + # custom attributes insertion + insert_attributes( 'severity', $t_project_id, 'global' ); + insert_attributes( 'severity', $t_project_id, 'str' ) ; +} create_bug_enum_summary_pct( $s_severity_enum_string, 'severity'); graph_bug_enum_summary_pct($s_by_severity_pct); ?> \ No newline at end of file diff --git a/summary_graph_bystatus.php b/summary_graph_bystatus.php index 94957ffeca..840e99fc55 100644 --- a/summary_graph_bystatus.php +++ b/summary_graph_bystatus.php @@ -1,6 +1,15 @@ \ No newline at end of file diff --git a/summary_graph_bystatus_pct.php b/summary_graph_bystatus_pct.php index 75e75939a5..12f73cdd6a 100644 --- a/summary_graph_bystatus_pct.php +++ b/summary_graph_bystatus_pct.php @@ -9,6 +9,15 @@ $poshorizontal = 0.03; $posvertical = 0.09; +if ($g_customize_attributes) { + # to be deleted when moving to manage_project_page.php + $t_project_id = '0000000'; + + # custom attributes insertion + insert_attributes( 'status', $t_project_id, 'global' ); + insert_attributes( 'status', $t_project_id, 'str' ) ; +} + create_bug_enum_summary_pct($s_status_enum_string, 'status'); graph_bug_enum_summary_pct($s_by_status_pct); diff --git a/summary_graph_imp_status.php b/summary_graph_imp_status.php index a7f895646e..b140d032a7 100644 --- a/summary_graph_imp_status.php +++ b/summary_graph_imp_status.php @@ -75,7 +75,7 @@ - + diff --git a/summary_page.php b/summary_page.php index c3f0ee6b51..fdd6b1cfbb 100644 --- a/summary_page.php +++ b/summary_page.php @@ -78,7 +78,16 @@ : - + @@ -102,7 +111,16 @@ : - + @@ -113,7 +131,16 @@ : - + @@ -137,7 +164,16 @@ : - +