summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-08-05 03:24:06 +0200
committerlpsolit%gmail.com <>2005-08-05 03:24:06 +0200
commit4d36c161858c12850a0f710c240cbf1b29412a26 (patch)
tree07dc7858081f6928613781b140a6db1897042668 /template/en/default
parent59e098fd12bfe3b980cfaf6735ac99de6ff5aea3 (diff)
downloadbugzilla-4d36c161858c12850a0f710c240cbf1b29412a26.tar.gz
bugzilla-4d36c161858c12850a0f710c240cbf1b29412a26.tar.xz
Bug 302723: Deleting a user account when this user is the assignee or QA contact of a bug should reassign this bug to the default ones - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=justdave
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/admin/users/confirm-delete.html.tmpl40
-rw-r--r--template/en/default/filterexceptions.pl3
2 files changed, 29 insertions, 14 deletions
diff --git a/template/en/default/admin/users/confirm-delete.html.tmpl b/template/en/default/admin/users/confirm-delete.html.tmpl
index 205f96b15..e8bfe8609 100644
--- a/template/en/default/admin/users/confirm-delete.html.tmpl
+++ b/template/en/default/admin/users/confirm-delete.html.tmpl
@@ -21,7 +21,9 @@
# editusers: is viewing user member of editusers?
# editcomponents: is viewing user member of editcomponents?
# otheruser: Bugzilla::User object of the viewed user.
- # bugs: number of bugs the viewed user has a role in
+ # reporter: number of bugs reported by the user
+ # assignee_or_qa: number of bugs the user is either the assignee
+ # or the QA contact
# bug_activity: number of bugs the viewed user has activity
# entries on
# cc number of bugs the viewed user is cc list member
@@ -129,24 +131,22 @@
<h2>Confirmation</h2>
- [% IF bugs || bug_activity || cc || flags.requestee || flags.setter ||
- longdescs || namedqueries || profiles_activity || series || votes ||
- watch.watched || watch.watcher || whine_events || whine_schedules %]
+ [% IF reporter || assignee_or_qa || bug_activity || cc || flags.requestee ||
+ flags.setter || longdescs || namedqueries || profiles_activity || series ||
+ votes || watch.watched || watch.watcher || whine_events || whine_schedules %]
<ul class="warningmessages">
- [% IF bugs %]
+ [% IF reporter %]
<li>
[% otheruser.login FILTER html %]
- <a href="buglist.cgi?emailassigned_to1=1&amp;emailreporter1=1&amp;emailqa_contact1=1&amp;emailtype1=exact&amp;email1=[% otheruser.login FILTER url_quote %]">is
- related to
- [% IF bugs == 1 %]
- [%+ terms.abug %]
+ <a href="buglist.cgi?emailreporter1=1&amp;emailtype1=exact&amp;email1=[% otheruser.login FILTER url_quote %]">has reported
+ [% IF reporter == 1 %]
+ one [% terms.bug %]
[% ELSE %]
- [%+ bugs %] [%+ terms.bugs %]
- [% END %]</a>, by having reported, being assigned to or being
- the QA contact.
+ [%+ reporter %] [%+ terms.bugs %]
+ [% END %]</a>.
If you delete the user account, the [% terms.bugs %] table in the
database will be inconsistent, resulting in
- [% IF bugs == 1 %]
+ [% IF reporter == 1 %]
this [% terms.bug %]
[% ELSE %]
these [% terms.bugs %]
@@ -154,6 +154,20 @@
not appearing in [% terms.bug %] lists any more.
</li>
[% END %]
+ [% IF assignee_or_qa %]
+ <li>
+ [% otheruser.login FILTER html %]
+ <a href="buglist.cgi?emailassigned_to1=1&amp;emailqa_contact1=1&amp;emailtype1=exact&amp;email1=[% otheruser.login FILTER url_quote %]">is
+ the assignee or the QA contact of
+ [% IF assignee_or_qa == 1 %]
+ one [% terms.bug %]
+ [% ELSE %]
+ [%+ assignee_or_qa %] [%+ terms.bugs %]
+ [% END %]</a>.
+ If you delete the user account, these roles will fall back to
+ the default assignee or default QA contact.
+ </li>
+ [% END %]
[% IF bugs_activity %]
<li>
[% otheruser.login FILTER html %] has made
diff --git a/template/en/default/filterexceptions.pl b/template/en/default/filterexceptions.pl
index 3b765ddd4..89a54bc3d 100644
--- a/template/en/default/filterexceptions.pl
+++ b/template/en/default/filterexceptions.pl
@@ -583,7 +583,8 @@
'admin/users/confirm-delete.html.tmpl' => [
'andstring',
'responsibilityterms.$responsibility',
- 'bugs',
+ 'reporter',
+ 'assignee_or_qa',
'cc',
'flags.requestee',
'flags.setter',