diff options
author | lpsolit%gmail.com <> | 2005-04-06 09:19:51 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-04-06 09:19:51 +0200 |
commit | 64be6114d94ef5e8bf7056e135a0d4d8c1e7b308 (patch) | |
tree | dd8ae4a27c0da72798e688a65b0fe91f265c9aa9 /template/en/default/admin | |
parent | 3541f13ea528fa84bbbf5270376044266c18d763 (diff) | |
download | bugzilla-64be6114d94ef5e8bf7056e135a0d4d8c1e7b308.tar.gz bugzilla-64be6114d94ef5e8bf7056e135a0d4d8c1e7b308.tar.xz |
Bug 86328: Deleting bugs doesn't delete dependent records properly - Patch by Frederic Buclin <LpSolit@gmail.com> r=wurblzap a=justdave
Diffstat (limited to 'template/en/default/admin')
5 files changed, 40 insertions, 138 deletions
diff --git a/template/en/default/admin/components/deleted.html.tmpl b/template/en/default/admin/components/deleted.html.tmpl index 6efa38843..83c006869 100644 --- a/template/en/default/admin/components/deleted.html.tmpl +++ b/template/en/default/admin/components/deleted.html.tmpl @@ -36,23 +36,15 @@ <p> [% IF deleted_bug_count %] - Attachments, [% terms.bug %] activity and dependencies deleted for - [%+ deleted_bug_count %] - [%- IF deleted_bug_count %] - [% terms.bugs %] - [% ELSE %] - [% terms.bug %] - [% END %]. - - </p><p> [% deleted_bug_count %] - [%- IF deleted_bug_count %] + [%- IF deleted_bug_count > 1 %] [% terms.bugs %] [% ELSE %] [% terms.bug %] [% END %] deleted. - + </p><p> + All references to those deleted [% terms.bugs %] have been removed. [% ELSE %] No [% terms.bugs %] existed for the component. [% END %] diff --git a/template/en/default/admin/milestones/confirm-delete.html.tmpl b/template/en/default/admin/milestones/confirm-delete.html.tmpl index 893b849ae..c3d379cbd 100644 --- a/template/en/default/admin/milestones/confirm-delete.html.tmpl +++ b/template/en/default/admin/milestones/confirm-delete.html.tmpl @@ -17,6 +17,7 @@ # Rights Reserved. # # Contributor(s): Gavin Shelley <bugzilla@chimpychompy.org> + # Frédéric Buclin <LpSolit@gmail.com> #%] [%# INTERFACE: @@ -69,66 +70,30 @@ [% IF bug_count %] - [% IF !Param("allowbugdeletion") %] - - Sorry, there - + <table border="0" cellpadding="20" width="70%" bgcolor="red"> + <tr><td> + There [% IF bug_count > 1 %] are [% bug_count %] [%+ terms.bugs %] [% ELSE %] - is [% bug_count %] [%+ terms.bug %] - [% END %] - - outstanding for this milestone. You must move - - [% IF bug_count > 1 %] - those [% terms.bugs %] - [% ELSE %] - that [% terms.bug %] + is 1 [% terms.bug %] [% END %] - - to another milestone before you can delete this one. - - [% ELSE %] - - <table border="0" cellpadding="20" width="70%" bgcolor="red"><tr><td> - - There [% IF bug_count > 1 %] - are [% bug_count %] [%+ terms.bugs %] - [% ELSE %] - is 1 [% terms.bug %] - [% END %] - entered for this milestone! When you delete this - milestone, <b><blink>ALL</blink></b> stored [% terms.bugs %] will be deleted, - too. - You could not even see the [% terms.bug %] history for this milestone anymore! - </td></tr></table> - - [% END %] + entered for this milestone! When you delete this milestone, + <b><blink>ALL</blink></b> stored [% terms.bugs %] will be reassigned to + the default milestone of this product. + </td></tr> + </table> [% END %] -[% IF default_milestone == name %] - - <p>Sorry, but '[% name FILTER html %]' is the default milestone for product ' - [%- product FILTER html %]', and so it can not be deleted. - - [% ELSE %] - - [% IF bug_count == 0 || Param('allowbugdeletion') %] +<p>Do you really want to delete this milestone?<p> - <p>Do you really want to delete this milestone?<p> - - <form method="post" action="editmilestones.cgi"> - <input type="submit" value="Yes, delete"> - <input type="hidden" name="action" value="delete"> - <input type="hidden" name="product" value="[% product FILTER html %]"> - <input type="hidden" name="milestone" value="[% name FILTER html %]"> - </form> - - [% END %] - -[% END %] +<form method="post" action="editmilestones.cgi"> + <input type="submit" value="Yes, delete"> + <input type="hidden" name="action" value="delete"> + <input type="hidden" name="product" value="[% product FILTER html %]"> + <input type="hidden" name="milestone" value="[% name FILTER html %]"> +</form> [% PROCESS admin/milestones/footer.html.tmpl %] diff --git a/template/en/default/admin/milestones/deleted.html.tmpl b/template/en/default/admin/milestones/deleted.html.tmpl index 61abb38e5..3a3e52ab5 100644 --- a/template/en/default/admin/milestones/deleted.html.tmpl +++ b/template/en/default/admin/milestones/deleted.html.tmpl @@ -17,6 +17,7 @@ # Rights Reserved. # # Contributor(s): Gavin Shelley <bugzilla@chimpychompy.org> + # Frédéric Buclin <LpSolit@gmail.com> #%] [%# INTERFACE: @@ -24,8 +25,8 @@ # # product: string; the name of the product the milestone belonged to # - # deleted_bug_count: number; the number of bugs which were deleted - # (if bug deletion is allowed) + # bug_count: number; the number of bugs which were reassigned to + # the default milestone. #%] [% title = BLOCK %]Deleted Milestone '[% name FILTER html %]' of Product @@ -35,23 +36,15 @@ %] <p> -[% IF deleted_bug_count %] - Attachments, [% terms.bug %] activity and dependencies deleted for - [%+ deleted_bug_count %] - [% IF deleted_bug_count > 1 %] - [%+ terms.bugs %] - [% ELSE %] - [%+ terms.bug %] - [% END %]. +[% IF bug_count %] - </p><p> - [% deleted_bug_count %] - [% IF deleted_bug_count > 1 %] + [% bug_count %] + [% IF bug_count > 1 %] [%+ terms.bugs %] [% ELSE %] [%+ terms.bug %] [% END %] - deleted. + reassigned to the default milestone. [% ELSE %] No [% terms.bugs %] were targetted at the milestone. diff --git a/template/en/default/admin/versions/confirm-delete.html.tmpl b/template/en/default/admin/versions/confirm-delete.html.tmpl index 5f9b93943..acc20aeca 100644 --- a/template/en/default/admin/versions/confirm-delete.html.tmpl +++ b/template/en/default/admin/versions/confirm-delete.html.tmpl @@ -17,6 +17,7 @@ # Rights Reserved. # # Contributor(s): Gavin Shelley <bugzilla@chimpychompy.org> + # Frédéric Buclin <LpSolit@gmail.com> #%] [%# INTERFACE: @@ -67,46 +68,23 @@ [% IF bug_count %] - [% IF !Param("allowbugdeletion") %] - - Sorry, there - - [% IF bug_count > 1 %] - are [% bug_count %] [%+ terms.bugs %] - [% ELSE %] - is [% bug_count %] [%+ terms.bug %] - [% END %] - - outstanding for this version. You must move - - [% IF bug_count > 1 %] - those [% terms.bugs %] - [% ELSE %] - that [% terms.bug %] - [% END %] - - to another version before you can delete this one. - + Sorry, there + [% IF bug_count > 1 %] + are [% bug_count %] [%+ terms.bugs %] [% ELSE %] + is [% bug_count %] [%+ terms.bug %] + [% END %] - <table border="0" cellpadding="20" width="70%" bgcolor="red"><tr><td> - - There [% IF bug_count > 1 %] - are [% bug_count %] [%+ terms.bugs %] - [% ELSE %] - is 1 [% terms.bug %] - [% END %] - entered for this version! When you delete this - version, <b><blink>ALL</blink></b> stored [% terms.bugs %] will be deleted, - too. - You could not even see the [% terms.bug %] history for this version anymore! - </td></tr></table> + outstanding for this version. You must move + [% IF bug_count > 1 %] + those [% terms.bugs %] + [% ELSE %] + that [% terms.bug %] [% END %] + to another version before you can delete this one. -[% END %] - -[% IF bug_count == 0 || Param('allowbugdeletion') %] +[% ELSE %] <p>Do you really want to delete this version?<p> diff --git a/template/en/default/admin/versions/deleted.html.tmpl b/template/en/default/admin/versions/deleted.html.tmpl index f6945ccd3..2ec3ebe10 100644 --- a/template/en/default/admin/versions/deleted.html.tmpl +++ b/template/en/default/admin/versions/deleted.html.tmpl @@ -24,8 +24,6 @@ # # product: string; the name of the product the version belonged to # - # deleted_bug_count: number; the number of bugs which were deleted - # (if bug deletion is allowed) #%] [% title = BLOCK %]Deleted Version '[% name FILTER html %]' of Product @@ -34,30 +32,6 @@ title = title %] -<p> -[% IF deleted_bug_count %] - Attachments, [% terms.bug %] activity and dependencies deleted for - [%+ deleted_bug_count %] - [% IF deleted_bug_count > 1 %] - [%+ terms.bugs %] - [% ELSE %] - [%+ terms.bug %] - [% END %]. - - </p><p> - [% deleted_bug_count %] - [% IF deleted_bug_count > 1 %] - [%+ terms.bugs %] - [% ELSE %] - [%+ terms.bug %] - [% END %] - deleted. - -[% ELSE %] - No [% terms.bugs %] were targetted at the version. -[% END %] -</p> - <p>Version '[% name FILTER html %]' deleted.</p> <p> |