diff --git a/mozilla/webtools/bugzilla/editcomponents.cgi b/mozilla/webtools/bugzilla/editcomponents.cgi index 3cbd71a9c50..601873e83a7 100755 --- a/mozilla/webtools/bugzilla/editcomponents.cgi +++ b/mozilla/webtools/bugzilla/editcomponents.cgi @@ -96,8 +96,7 @@ $user->can_see_product($product->name) unless ($action) { $vars->{'showbugcounts'} = $showbugcounts; - $vars->{'product'} = $product->name; - $vars->{'components'} = $product->components; + $vars->{'product'} = $product; $template->process("admin/components/list.html.tmpl", $vars) || ThrowTemplateError($template->error()); @@ -113,7 +112,7 @@ unless ($action) { if ($action eq 'add') { - $vars->{'product'} = $product->name; + $vars->{'product'} = $product; $template->process("admin/components/create.html.tmpl", $vars) || ThrowTemplateError($template->error()); @@ -212,8 +211,12 @@ if ($action eq 'new') { # Make versioncache flush unlink "$datadir/versioncache"; - $vars->{'name'} = $comp_name; - $vars->{'product'} = $product->name; + $component = + new Bugzilla::Component({product_id => $product->id, + name => $comp_name}); + + $vars->{'comp'} = $component; + $vars->{'product'} = $product; $template->process("admin/components/created.html.tmpl", $vars) || ThrowTemplateError($template->error()); @@ -234,7 +237,7 @@ if ($action eq 'del') { $vars->{'comp'} = Bugzilla::Component::check_component($product, $comp_name); - $vars->{'prod'} = $product; + $vars->{'product'} = $product; $template->process("admin/components/confirm-delete.html.tmpl", $vars) || ThrowTemplateError($template->error()); @@ -264,9 +267,7 @@ if ($action eq 'delete') { {nb => $component->bug_count }); } } - - $vars->{'deleted_bug_count'} = $component->bug_count; - + $dbh->bz_lock_tables('components WRITE', 'flaginclusions WRITE', 'flagexclusions WRITE'); @@ -281,8 +282,8 @@ if ($action eq 'delete') { unlink "$datadir/versioncache"; - $vars->{'name'} = $component->name; - $vars->{'product'} = $product->name; + $vars->{'comp'} = $component; + $vars->{'product'} = $product; $template->process("admin/components/deleted.html.tmpl", $vars) || ThrowTemplateError($template->error()); exit; @@ -301,7 +302,7 @@ if ($action eq 'edit') { $vars->{'comp'} = Bugzilla::Component::check_component($product, $comp_name); - $vars->{'prod'} = $product; + $vars->{'product'} = $product; $template->process("admin/components/edit.html.tmpl", $vars) @@ -379,7 +380,6 @@ if ($action eq 'update') { undef, ($description, $component_old->id)); $vars->{'updated_description'} = 1; - $vars->{'description'} = $description; } if ($default_assignee ne $component_old->default_assignee->login) { @@ -388,8 +388,6 @@ if ($action eq 'update') { undef, ($default_assignee_id, $component_old->id)); $vars->{'updated_initialowner'} = 1; - $vars->{'initialowner'} = $default_assignee; - } if (Param('useqacontact') @@ -399,13 +397,14 @@ if ($action eq 'update') { ($default_qa_contact_id, $component_old->id)); $vars->{'updated_initialqacontact'} = 1; - $vars->{'initialqacontact'} = $default_qa_contact; } $dbh->bz_unlock_tables(); - $vars->{'name'} = $comp_name; - $vars->{'product'} = $product->name; + my $component = new Bugzilla::Component($component_old->id); + + $vars->{'comp'} = $component; + $vars->{'product'} = $product; $template->process("admin/components/updated.html.tmpl", $vars) || ThrowTemplateError($template->error()); diff --git a/mozilla/webtools/bugzilla/editmilestones.cgi b/mozilla/webtools/bugzilla/editmilestones.cgi index 4a17cdc1860..8d9cbe9733b 100755 --- a/mozilla/webtools/bugzilla/editmilestones.cgi +++ b/mozilla/webtools/bugzilla/editmilestones.cgi @@ -84,9 +84,7 @@ $user->can_see_product($product->name) unless ($action) { $vars->{'showbugcounts'} = $showbugcounts; - $vars->{'product'} = $product->name; - $vars->{'milestones'} = $product->milestones; - $vars->{'default_milestone'} = $product->default_milestone; + $vars->{'product'} = $product; $template->process("admin/milestones/list.html.tmpl", $vars) || ThrowTemplateError($template->error()); @@ -105,7 +103,7 @@ unless ($action) { if ($action eq 'add') { - $vars->{'product'} = $product->name; + $vars->{'product'} = $product; $template->process("admin/milestones/create.html.tmpl", $vars) || ThrowTemplateError($template->error()); @@ -149,8 +147,10 @@ if ($action eq 'new') { # Make versioncache flush unlink "$datadir/versioncache"; - $vars->{'name'} = $milestone_name; - $vars->{'product'} = $product->name; + $milestone = new Bugzilla::Milestone($product->id, + $milestone_name); + $vars->{'milestone'} = $milestone; + $vars->{'product'} = $product; $template->process("admin/milestones/created.html.tmpl", $vars) || ThrowTemplateError($template->error()); @@ -171,16 +171,14 @@ if ($action eq 'del') { my $milestone = Bugzilla::Milestone::check_milestone($product, $milestone_name); - $vars->{'name'} = $milestone->name; - $vars->{'product'} = $product->name; + $vars->{'milestone'} = $milestone; + $vars->{'product'} = $product; # The default milestone cannot be deleted. if ($product->default_milestone eq $milestone->name) { ThrowUserError("milestone_is_default", $vars); } - $vars->{'bug_count'} = $milestone->bug_count; - $template->process("admin/milestones/confirm-delete.html.tmpl", $vars) || ThrowTemplateError($template->error()); exit; @@ -197,23 +195,21 @@ if ($action eq 'delete') { my $milestone = Bugzilla::Milestone::check_milestone($product, $milestone_name); - $vars->{'name'} = $milestone->name; - $vars->{'product'} = $product->name; + $vars->{'milestone'} = $milestone; + $vars->{'product'} = $product; # The default milestone cannot be deleted. if ($milestone->name eq $product->default_milestone) { ThrowUserError("milestone_is_default", $vars); } - # We don't want to delete bugs when deleting a milestone. - # Bugs concerned are reassigned to the default milestone. - my $bug_ids = - $dbh->selectcol_arrayref("SELECT bug_id FROM bugs - WHERE product_id = ? AND target_milestone = ?", - undef, ($product->id, $milestone->name)); - - my $nb_bugs = scalar(@$bug_ids); - if ($nb_bugs) { + if ($milestone->bug_count) { + # We don't want to delete bugs when deleting a milestone. + # Bugs concerned are reassigned to the default milestone. + my $bug_ids = + $dbh->selectcol_arrayref("SELECT bug_id FROM bugs + WHERE product_id = ? AND target_milestone = ?", + undef, ($product->id, $milestone->name)); my $timestamp = $dbh->selectrow_array("SELECT NOW()"); foreach my $bug_id (@$bug_ids) { $dbh->do("UPDATE bugs SET target_milestone = ?, @@ -228,8 +224,6 @@ if ($action eq 'delete') { } } - $vars->{'bug_count'} = $nb_bugs; - $dbh->do("DELETE FROM milestones WHERE product_id = ? AND value = ?", undef, ($product->id, $milestone->name)); @@ -254,9 +248,8 @@ if ($action eq 'edit') { Bugzilla::Milestone::check_milestone($product, $milestone_name); - $vars->{'sortkey'} = $milestone->sortkey; - $vars->{'name'} = $milestone->name; - $vars->{'product'} = $product->name; + $vars->{'milestone'} = $milestone; + $vars->{'product'} = $product; $template->process("admin/milestones/edit.html.tmpl", $vars) @@ -301,7 +294,6 @@ if ($action eq 'update') { unlink "$datadir/versioncache"; $vars->{'updated_sortkey'} = 1; - $vars->{'sortkey'} = $sortkey; } if ($milestone_name ne $milestone_old->name) { @@ -352,8 +344,11 @@ if ($action eq 'update') { $dbh->bz_unlock_tables(); - $vars->{'name'} = $milestone_name; - $vars->{'product'} = $product->name; + my $milestone = + Bugzilla::Milestone::check_milestone($product, + $milestone_name); + $vars->{'milestone'} = $milestone; + $vars->{'product'} = $product; $template->process("admin/milestones/updated.html.tmpl", $vars) || ThrowTemplateError($template->error()); diff --git a/mozilla/webtools/bugzilla/editversions.cgi b/mozilla/webtools/bugzilla/editversions.cgi index be2c8a3c6e0..dc6992ba8e9 100755 --- a/mozilla/webtools/bugzilla/editversions.cgi +++ b/mozilla/webtools/bugzilla/editversions.cgi @@ -91,8 +91,7 @@ $user->can_see_product($product->name) unless ($action) { $vars->{'showbugcounts'} = $showbugcounts; - $vars->{'product'} = $product->name; - $vars->{'versions'} = $product->versions; + $vars->{'product'} = $product; $template->process("admin/versions/list.html.tmpl", $vars) || ThrowTemplateError($template->error()); @@ -111,7 +110,7 @@ unless ($action) { if ($action eq 'add') { - $vars->{'product'} = $product->name; + $vars->{'product'} = $product; $template->process("admin/versions/create.html.tmpl", $vars) || ThrowTemplateError($template->error()); @@ -148,8 +147,9 @@ if ($action eq 'new') { # Make versioncache flush unlink "$datadir/versioncache"; - $vars->{'name'} = $version_name; - $vars->{'product'} = $product->name; + $version = new Bugzilla::Version($product->id, $version_name); + $vars->{'version'} = $version; + $vars->{'product'} = $product; $template->process("admin/versions/created.html.tmpl", $vars) || ThrowTemplateError($template->error()); @@ -170,11 +170,9 @@ if ($action eq 'del') { my $version = Bugzilla::Version::check_version($product, $version_name); - my $bugs = $version->bug_count; - $vars->{'bug_count'} = $bugs; - $vars->{'name'} = $version->name; - $vars->{'product'} = $product->name; + $vars->{'version'} = $version; + $vars->{'product'} = $product; $template->process("admin/versions/confirm-delete.html.tmpl", $vars) || ThrowTemplateError($template->error()); @@ -205,8 +203,8 @@ if ($action eq 'delete') { unlink "$datadir/versioncache"; - $vars->{'name'} = $version->name; - $vars->{'product'} = $product->name; + $vars->{'version'} = $version; + $vars->{'product'} = $product; $template->process("admin/versions/deleted.html.tmpl", $vars) || ThrowTemplateError($template->error()); @@ -226,8 +224,8 @@ if ($action eq 'edit') { my $version = Bugzilla::Version::check_version($product, $version_name); - $vars->{'name'} = $version->name; - $vars->{'product'} = $product->name; + $vars->{'version'} = $version; + $vars->{'product'} = $product; $template->process("admin/versions/edit.html.tmpl", $vars) @@ -290,8 +288,11 @@ if ($action eq 'update') { $dbh->bz_unlock_tables(); - $vars->{'name'} = $version_name; - $vars->{'product'} = $product->name; + my $version = + Bugzilla::Version::check_version($product, + $version_name); + $vars->{'version'} = $version; + $vars->{'product'} = $product; $template->process("admin/versions/updated.html.tmpl", $vars) || ThrowTemplateError($template->error()); diff --git a/mozilla/webtools/bugzilla/template/en/default/admin/components/confirm-delete.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/admin/components/confirm-delete.html.tmpl index dabace15457..a0387352bf5 100644 --- a/mozilla/webtools/bugzilla/template/en/default/admin/components/confirm-delete.html.tmpl +++ b/mozilla/webtools/bugzilla/template/en/default/admin/components/confirm-delete.html.tmpl @@ -22,11 +22,11 @@ [%# INTERFACE: # comp: object; Bugzilla::Component object representing the component the # user wants to delete. - # prod: object; Bugzilla::Product object representing the product to + # product: object; Bugzilla::Product object representing the product to # which the component belongs. #%] -[% title = BLOCK %]Delete Component of Product '[% prod.name FILTER html %]' +[% title = BLOCK %]Delete Component of Product '[% product.name FILTER html %]' [% END %] [% PROCESS global/header.html.tmpl @@ -60,13 +60,13 @@
The component ' - [%- name FILTER html %]' has been created.
+ [%- product.name FILTER url_quote %]&component=[% comp.name FILTER url_quote %]"> + [%- comp.name FILTER html %]' has been created. [% PROCESS admin/components/footer.html.tmpl %] diff --git a/mozilla/webtools/bugzilla/template/en/default/admin/components/deleted.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/admin/components/deleted.html.tmpl index 83c00686932..2b89ac0f325 100644 --- a/mozilla/webtools/bugzilla/template/en/default/admin/components/deleted.html.tmpl +++ b/mozilla/webtools/bugzilla/template/en/default/admin/components/deleted.html.tmpl @@ -20,27 +20,25 @@ #%] [%# INTERFACE: - # name: string; the name of the deleted component. - # - # product: string; the name of the product the component belonged to - # - # deleted_bug_count: number; the number of bugs which were deleted - # (if bug deletion is allowed) + # comp: object; Bugzilla::Component object representing the component the + # user deleted. + # product: object; Bugzilla::Product object representing the product to + # which the component belongs. #%] -[% title = BLOCK %]Deleted Component '[% name FILTER html %]' from Product - '[% product FILTER html %]'[% END %] +[% title = BLOCK %]Deleted Component '[% comp.name FILTER html %]' from Product + '[% product.name FILTER html %]'[% END %] [% PROCESS global/header.html.tmpl title = title %]-[% IF deleted_bug_count %] - [% deleted_bug_count %] - [%- IF deleted_bug_count > 1 %] - [% terms.bugs %] +[% IF comp.bug_count %] + [% comp.bug_count FILTER none %] + [%- IF comp.bug_count > 1 %] + [%+ terms.bugs %] [% ELSE %] - [% terms.bug %] + [%+ terms.bug %] [% END %] deleted.
@@ -52,7 +50,7 @@
Flag inclusions and exclusions deleted.
-Component '[% name FILTER html %]' deleted.
+Component '[% comp.name FILTER html %]' deleted.
[% PROCESS admin/components/footer.html.tmpl no_edit_component_link = 1 diff --git a/mozilla/webtools/bugzilla/template/en/default/admin/components/edit.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/admin/components/edit.html.tmpl index 920ad1ff61e..22b7295dd0c 100644 --- a/mozilla/webtools/bugzilla/template/en/default/admin/components/edit.html.tmpl +++ b/mozilla/webtools/bugzilla/template/en/default/admin/components/edit.html.tmpl @@ -22,7 +22,7 @@ [%# INTERFACE: # comp: object; Bugzilla::Component object representing the component the # user wants to edit. - # prod: object; Bugzilla::Product object representing the product to + # product: object; Bugzilla::Product object representing the product to # which the component belongs. #%] @@ -88,7 +88,7 @@ [% comp.bug_count %] + [%- product.name FILTER url_quote %]">[% comp.bug_count %] [% ELSE %] None [% END %] @@ -99,18 +99,16 @@ - + or Delete this component. [% PROCESS admin/components/footer.html.tmpl no_edit_component_link = 1 - name = comp.name - product = prod.name %] [% PROCESS global/footer.html.tmpl %] diff --git a/mozilla/webtools/bugzilla/template/en/default/admin/components/footer.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/admin/components/footer.html.tmpl index 1f58622aef9..dfc72092163 100644 --- a/mozilla/webtools/bugzilla/template/en/default/admin/components/footer.html.tmpl +++ b/mozilla/webtools/bugzilla/template/en/default/admin/components/footer.html.tmpl @@ -20,10 +20,9 @@ #%] [%# INTERFACE: - # name: string; the name of the component - # - # product: string; the name of the product which the component - # belongs/belonged to + # comp: object; Bugzilla::Component object representing the component + # product: object; Bugzilla::Product object representing the product to + # which the component belongs. #%]@@ -31,26 +30,26 @@
Add - a new component to product '[% product FILTER html %]'
+Add + a new component to product '[% product.name FILTER html %]'
[% IF ! showbugcounts %] -| Updated description to: | -'[% description FILTER html %]' | +'[% comp.description FILTER html %]' |
Updated Default Assignee to: '[% initialowner FILTER html %]'.
+Updated Default Assignee to: '[% comp.initialowner FILTER html %]'.
[% END %] [% IF updated_initialqacontact %][% IF initialqacontact %] - Updated Default QA Contact to '[% initialqacontact FILTER html %]'. + Updated Default QA Contact to '[% comp.initialqacontact FILTER html %]'. [% ELSE %] Removed Default QA Contact. [% END %] @@ -68,12 +69,12 @@ [% END %] [% IF updated_name %] -
Updated Component name to: '[% name FILTER html %]'.
+Updated Component name to: '[% comp.name FILTER html %]'.
[% END %] [% UNLESS updated_description || updated_initialowner || updated_initialqacontact || updated_name %] -Nothing changed for component '[% name FILTER html %]'. +
Nothing changed for component '[% comp.name FILTER html %]'. [% END %] diff --git a/mozilla/webtools/bugzilla/template/en/default/admin/milestones/confirm-delete.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/admin/milestones/confirm-delete.html.tmpl index 61601d18524..6a7900e72d0 100644 --- a/mozilla/webtools/bugzilla/template/en/default/admin/milestones/confirm-delete.html.tmpl +++ b/mozilla/webtools/bugzilla/template/en/default/admin/milestones/confirm-delete.html.tmpl @@ -21,15 +21,13 @@ #%] [%# INTERFACE: - # name: string; The name of the milestone - # - # bug_count: number; The number of bugs targetted at the milestone - # - # product: string; The name of the product - # + # product: object; Bugzilla::Product object representing the product to + # which the milestone belongs. + # milestone: object; Bugzilla::Milestone object representing the + # milestone the user wants to delete. #%] -[% title = BLOCK %]Delete Milestone of Product '[% product FILTER html %]' +[% title = BLOCK %]Delete Milestone of Product '[% product.name FILTER html %]' [% END %] [% PROCESS global/header.html.tmpl @@ -43,20 +41,21 @@
| There - [% IF bug_count > 1 %] - are [% bug_count %] [%+ terms.bugs %] + [% IF milestone.bug_count > 1 %] + are [% milestone.bug_count FILTER none %] [%+ terms.bugs %] [% ELSE %] is 1 [% terms.bug %] [% END %] @@ -89,8 +88,8 @@ [% PROCESS admin/milestones/footer.html.tmpl %] diff --git a/mozilla/webtools/bugzilla/template/en/default/admin/milestones/create.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/admin/milestones/create.html.tmpl index d8779dd544f..99a7f833aed 100644 --- a/mozilla/webtools/bugzilla/template/en/default/admin/milestones/create.html.tmpl +++ b/mozilla/webtools/bugzilla/template/en/default/admin/milestones/create.html.tmpl @@ -20,12 +20,13 @@ #%] [%# INTERFACE: - # product: string; name of the product the milestone is being created for + # product: object; Bugzilla::Product object representing the product to + # which the milestone belongs. #%] -[% title = BLOCK %]Add Milestone to Product '[% product FILTER html %]'[% END %] +[% title = BLOCK %]Add Milestone to Product '[% product.name FILTER html %]'[% END %] [% h2 = BLOCK %]This page allows you to add a new milestone to product - '[% product FILTER html %]'.[% END %] + '[% product.name FILTER html %]'.[% END %] [% PROCESS global/header.html.tmpl title = title h2 = h2 @@ -47,7 +48,7 @@ |
The milestone 'The milestone ' - [%- name FILTER html %]' has been created.
+ [%- product.name FILTER url_quote %]&milestone=[% milestone.name FILTER url_quote %]"> + [%- milestone.name FILTER html %]' has been created.diff --git a/mozilla/webtools/bugzilla/template/en/default/admin/milestones/deleted.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/admin/milestones/deleted.html.tmpl index 8db9b894344..bddae313634 100644 --- a/mozilla/webtools/bugzilla/template/en/default/admin/milestones/deleted.html.tmpl +++ b/mozilla/webtools/bugzilla/template/en/default/admin/milestones/deleted.html.tmpl @@ -21,25 +21,23 @@ #%] [%# INTERFACE: - # name: string; the name of the deleted milestone. - # - # product: string; the name of the product the milestone belonged to - # - # bug_count: number; the number of bugs which were reassigned to - # the default milestone. + # product: object; Bugzilla::Product object representing the product to + # which the milestone belongs. + # milestone: object; Bugzilla::Milestone object representing the + # milestone the user deleted. #%] -[% title = BLOCK %]Deleted Milestone '[% name FILTER html %]' of Product - '[% product FILTER html %]'[% END %] +[% title = BLOCK %]Deleted Milestone '[% milestone.name FILTER html %]' of Product + '[% product.name FILTER html %]'[% END %] [% PROCESS global/header.html.tmpl title = title %]
-[% IF bug_count %] +[% IF milestone.bug_count %] - [% bug_count %] - [% IF bug_count > 1 %] + [% milestone.bug_count FILTER none %] + [% IF milestone.bug_count > 1 %] [%+ terms.bugs %] [% ELSE %] [%+ terms.bug %] @@ -51,7 +49,7 @@ [% END %]
-Milestone '[% name FILTER html %]' deleted.
+Milestone '[% milestone.name FILTER html %]' deleted.
diff --git a/mozilla/webtools/bugzilla/template/en/default/admin/milestones/edit.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/admin/milestones/edit.html.tmpl index f49cacf4a98..1fdea30e090 100644 --- a/mozilla/webtools/bugzilla/template/en/default/admin/milestones/edit.html.tmpl +++ b/mozilla/webtools/bugzilla/template/en/default/admin/milestones/edit.html.tmpl @@ -20,17 +20,16 @@ #%] [%# INTERFACE: - # name: string; The name of the milestone - # - # sortkey: number; milestone sortkey - # - # product: string; The product the milestone belongs to + # product: object; Bugzilla::Product object representing the product to + # which the milestone belongs. + # milestone: object; Bugzilla::Milestone object representing the + # milestone the user wants to edit. #%] [% PROCESS global/variables.none.tmpl %] -[% title = BLOCK %]Edit Milestone '[% name FILTER html %]' of product ' - [%- product FILTER html %]'[% END %] +[% title = BLOCK %]Edit Milestone '[% milestone.name FILTER html %]' of product ' + [%- product.name FILTER html %]'[% END %] [% PROCESS global/header.html.tmpl title = title onload = "document.forms['f'].milestone.select()" @@ -42,19 +41,19 @@
+
Redisplay table with [% terms.bug %] counts (slower) Updated Milestone name to: '[% name FILTER html %]'. Updated Milestone name to: '[% milestone.name FILTER html %]'. Updated Milestone sortkey to: '[% sortkey FILTER html %]'. Updated Milestone sortkey to: '[% milestone.sortkey FILTER html %]'. Nothing changed for milestone '[% name FILTER html %]'.
+ Nothing changed for milestone '[% milestone.name FILTER html %]'.
[% END %]
diff --git a/mozilla/webtools/bugzilla/template/en/default/admin/versions/confirm-delete.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/admin/versions/confirm-delete.html.tmpl
index 34ada607bdf..a3e8f8d6204 100644
--- a/mozilla/webtools/bugzilla/template/en/default/admin/versions/confirm-delete.html.tmpl
+++ b/mozilla/webtools/bugzilla/template/en/default/admin/versions/confirm-delete.html.tmpl
@@ -21,15 +21,13 @@
#%]
[%# INTERFACE:
- # name: string; The name of the version
- #
- # bug_count: number; The number of bugs targetted at the version
- #
- # product: string; The name of the product
- #
+ # product: object; Bugzilla::Product object representing the product to
+ # which the version belongs.
+ # version: object; Bugzilla::Version object representing the
+ # version the user wants to delete.
#%]
-[% title = BLOCK %]Delete Version of Product '[% product FILTER html %]'
+[% title = BLOCK %]Delete Version of Product '[% product.name FILTER html %]'
[% END %]
[% PROCESS global/header.html.tmpl
@@ -43,20 +41,21 @@
The version 'The version '
- [%- name FILTER html %]' has been created.
diff --git a/mozilla/webtools/bugzilla/template/en/default/admin/versions/deleted.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/admin/versions/deleted.html.tmpl
index 2ec3ebe1086..ab75d0a5b92 100644
--- a/mozilla/webtools/bugzilla/template/en/default/admin/versions/deleted.html.tmpl
+++ b/mozilla/webtools/bugzilla/template/en/default/admin/versions/deleted.html.tmpl
@@ -20,19 +20,19 @@
#%]
[%# INTERFACE:
- # name: string; the name of the deleted version.
- #
- # product: string; the name of the product the version belonged to
- #
+ # product: object; Bugzilla::Product object representing the product to
+ # which the version belongs.
+ # version: object; Bugzilla::Version object representing the
+ # version the user deleted.
#%]
-[% title = BLOCK %]Deleted Version '[% name FILTER html %]' of Product
- '[% product FILTER html %]'[% END %]
+[% title = BLOCK %]Deleted Version '[% version.name FILTER html %]' of Product
+ '[% product.name FILTER html %]'[% END %]
[% PROCESS global/header.html.tmpl
title = title
%]
- Version '[% name FILTER html %]' deleted. Version '[% version.name FILTER html %]' deleted.
diff --git a/mozilla/webtools/bugzilla/template/en/default/admin/versions/edit.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/admin/versions/edit.html.tmpl
index ef1fbd270b7..eff3d92ad99 100644
--- a/mozilla/webtools/bugzilla/template/en/default/admin/versions/edit.html.tmpl
+++ b/mozilla/webtools/bugzilla/template/en/default/admin/versions/edit.html.tmpl
@@ -20,15 +20,16 @@
#%]
[%# INTERFACE:
- # name: string; The name of the version
- #
- # product: string; The product the version belongs to
+ # product: object; Bugzilla::Product object representing the product to
+ # which the version belongs.
+ # version: object; Bugzilla::Version object representing the
+ # version the user wants to edit.
#%]
[% PROCESS global/variables.none.tmpl %]
-[% title = BLOCK %]Edit Version '[% name FILTER html %]' of product '
- [%- product FILTER html %]'[% END %]
+[% title = BLOCK %]Edit Version '[% version.name FILTER html %]' of product '
+ [%- product.name FILTER html %]'[% END %]
[% PROCESS global/header.html.tmpl
title = title
%]
@@ -39,14 +40,14 @@
Version:
- [% name FILTER html %]
+ [% version.name FILTER html %]
Version of Product:
- [% product FILTER html %]
+ [% product.name FILTER html %]
[% terms.Bugs %]:
-[% IF bug_count %]
+[% IF version.bug_count %]
[% bug_count %]
+ [%- version.name FILTER html %]'"
+ href="buglist.cgi?version=[% version.name FILTER url_quote %]&product=
+ [%- product.name FILTER url_quote %]">
+ [%- version.bug_count FILTER none %]
[% ELSE %]
None
[% END %]
@@ -66,18 +65,18 @@
Confirmation
-[% IF bug_count %]
+[% IF version.bug_count %]
Sorry, there
- [% IF bug_count > 1 %]
- are [% bug_count %] [%+ terms.bugs %]
+ [% IF version.bug_count > 1 %]
+ are [% version.bug_count FILTER none %] [%+ terms.bugs %]
[% ELSE %]
- is [% bug_count %] [%+ terms.bug %]
+ is [% version.bug_count FILTER none %] [%+ terms.bug %]
[% END %]
outstanding for this version. You must move
- [% IF bug_count > 1 %]
+ [% IF version.bug_count > 1 %]
those [% terms.bugs %]
[% ELSE %]
that [% terms.bug %]
@@ -91,8 +90,8 @@
[% END %]
diff --git a/mozilla/webtools/bugzilla/template/en/default/admin/versions/create.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/admin/versions/create.html.tmpl
index 594bf4f8749..614996300cd 100644
--- a/mozilla/webtools/bugzilla/template/en/default/admin/versions/create.html.tmpl
+++ b/mozilla/webtools/bugzilla/template/en/default/admin/versions/create.html.tmpl
@@ -20,12 +20,13 @@
#%]
[%# INTERFACE:
- # product: string; name of the product the version is being created for
+ # product: object; Bugzilla::Product object representing the product to
+ # which the version is being created for
#%]
-[% title = BLOCK %]Add Version to Product '[% product FILTER html %]'[% END %]
+[% title = BLOCK %]Add Version to Product '[% product.name FILTER html %]'[% END %]
[% h2 = BLOCK %]This page allows you to add a new version to product
- '[% product FILTER html %]'.[% END %]
+ '[% product.name FILTER html %]'.[% END %]
[% PROCESS global/header.html.tmpl
title = title
h2 = h2
@@ -41,7 +42,7 @@
-
+
diff --git a/mozilla/webtools/bugzilla/template/en/default/admin/versions/created.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/admin/versions/created.html.tmpl
index 84445cccd92..597ac119f7e 100644
--- a/mozilla/webtools/bugzilla/template/en/default/admin/versions/created.html.tmpl
+++ b/mozilla/webtools/bugzilla/template/en/default/admin/versions/created.html.tmpl
@@ -20,22 +20,23 @@
#%]
[%# INTERFACE:
- # name: string; the name of the newly created version
- #
- # product: string; the name of the product the version belongs to
+ # product: object; Bugzilla::Product object representing the product to
+ # which the version belongs.
+ # version: object; Bugzilla::Version object representing the
+ # newly created version
#%]
[% title = BLOCK %]Adding new Version of Product
- '[% product FILTER html %]'[% END %]
+ '[% product.name FILTER html %]'[% END %]
[% PROCESS global/header.html.tmpl
title = title
%]
-
-
+
-
+
diff --git a/mozilla/webtools/bugzilla/template/en/default/admin/versions/footer.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/admin/versions/footer.html.tmpl
index 252005697d5..cf5e16dddb3 100644
--- a/mozilla/webtools/bugzilla/template/en/default/admin/versions/footer.html.tmpl
+++ b/mozilla/webtools/bugzilla/template/en/default/admin/versions/footer.html.tmpl
@@ -20,10 +20,9 @@
#%]
[%# INTERFACE:
- # name: string; the name of the version
- #
- # product: string; the name of the product which the version
- # belongs/belonged to
+ # product: object; Bugzilla::Product object representing the product to
+ # which the version belongs.
+ # version: object; Bugzilla::Version object representing the version
#
# no_XXX_link: boolean; if defined, then don't show the corresponding
# link. Supported parameters are:
@@ -38,29 +37,30 @@
+ [%- version.name FILTER html %]">
[% UNLESS no_add_version_link %]
- Add a version.
+ [%- product.name FILTER url_quote %]">Add a version.
[% END %]
-[% IF name && !no_edit_version_link %]
+[% IF version.name && !no_edit_version_link %]
Edit version
- '[% name FILTER html %]'.
+ [%- product.name FILTER url_quote %]&version=
+ [%- version.name FILTER url_quote %]">
+ '[% version.name FILTER html %]'.
[% END %]
[% UNLESS no_edit_other_versions_link %]
Edit other versions of product '[% product FILTER html %]'.
+ [%- product.name FILTER url_quote %]">'[% product.name FILTER html %]'.
[% END %]
Edit product '[% product FILTER html %]'.
+ [%- product.name FILTER url_quote %]">'[% product.name FILTER html %]'.
[% IF ! showbugcounts %] -
+
Redisplay table with [% terms.bug %] counts (slower) Updated Version name to: '[% name FILTER html %]'. Updated Version name to: '[% version.name FILTER html %]'. Nothing changed for version '[% name FILTER html %]'.
+ Nothing changed for version '[% version.name FILTER html %]'.
[% END %]
diff --git a/mozilla/webtools/bugzilla/template/en/default/filterexceptions.pl b/mozilla/webtools/bugzilla/template/en/default/filterexceptions.pl
index 40a96e70b67..b227821478a 100644
--- a/mozilla/webtools/bugzilla/template/en/default/filterexceptions.pl
+++ b/mozilla/webtools/bugzilla/template/en/default/filterexceptions.pl
@@ -557,10 +557,6 @@
'comp.bug_count'
],
-'admin/components/deleted.html.tmpl' => [
- 'deleted_bug_count'
-],
-
'admin/users/confirm-delete.html.tmpl' => [
'andstring',
'responsibilityterms.$responsibility',
@@ -591,18 +587,6 @@
'comp.bug_count'
],
-'admin/milestones/confirm-delete.html.tmpl' => [
- 'bug_count'
-],
-
-'admin/milestones/deleted.html.tmpl' => [
- 'bug_count'
-],
-
-'admin/versions/confirm-delete.html.tmpl' => [
- 'bug_count'
-],
-
'admin/settings/edit.html.tmpl' => [
'name',
'checkbox_name'
diff --git a/mozilla/webtools/bugzilla/template/en/default/global/user-error.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/global/user-error.html.tmpl
index 390c6b12c39..3f2a54146a5 100644
--- a/mozilla/webtools/bugzilla/template/en/default/global/user-error.html.tmpl
+++ b/mozilla/webtools/bugzilla/template/en/default/global/user-error.html.tmpl
@@ -778,8 +778,9 @@
[% title = "Default milestone not deletable" %]
[% admindocslinks = {'products.html' => 'Administering products',
'milestones.html' => 'About Milestones'} %]
- Sorry, but [% name FILTER html %] is the default milestone for
- product '[% product FILTER html %]', and so it can not be deleted.
+ Sorry, but [% milestone.name FILTER html %] is the default milestone
+ for product '[% product.name FILTER html %]', and so it can not be
+ deleted.
[% ELSIF error == "milestone_name_too_long" %]
[% title = "Milestone Name Is Too Long" %]