diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-01-23 21:45:49 +0100 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-01-23 21:45:49 +0100 |
commit | fe7904bfa16a9f3d29e6c88b70195e6e6659c593 (patch) | |
tree | bdfe73eb5d51e2019aeed5c0b475def7ab2b16d8 | |
parent | f61cc1dd36392d3b0eedb2d14e61ade7462ce2fd (diff) | |
download | bugzilla-fe7904bfa16a9f3d29e6c88b70195e6e6659c593.tar.gz bugzilla-fe7904bfa16a9f3d29e6c88b70195e6e6659c593.tar.xz |
Bug 833662 - Create new dupe_count column for buglist.cgi (not enabled by default) for displaying the number of duplicates for a bug
r=glob
-rw-r--r-- | extensions/BMO/Extension.pm | 4 | ||||
-rw-r--r-- | extensions/BMO/template/en/default/hook/global/field-descs-end.none.tmpl | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index 2681b9a41..84d04b0f8 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -1019,6 +1019,10 @@ sub buglist_columns { name => '(SELECT COUNT(*) FROM cc WHERE cc.bug_id = bugs.bug_id)', title => 'CC Count', }; + $columns->{'dupe_count'} = { + name => '(SELECT COUNT(*) FROM duplicates WHERE duplicates.dupe_of = bugs.bug_id)', + title => 'Duplicate Count', + }; } sub query_database { diff --git a/extensions/BMO/template/en/default/hook/global/field-descs-end.none.tmpl b/extensions/BMO/template/en/default/hook/global/field-descs-end.none.tmpl index 2c8bb7494..8c543b35d 100644 --- a/extensions/BMO/template/en/default/hook/global/field-descs-end.none.tmpl +++ b/extensions/BMO/template/en/default/hook/global/field-descs-end.none.tmpl @@ -8,4 +8,5 @@ [% IF in_template_var %] [% vars.field_descs.cc_count = "CC Count" %] + [% vars.field_descs.dupe_count = "Duplicate Count" %] [% END %] |