Commit 06779036 authored by Simon Green's avatar Simon Green

Bug 331007 - alias_in_use doesn't acknowledge that you could remove the alias from the other bug

parent 6cf171cc
...@@ -1445,7 +1445,7 @@ sub _check_alias { ...@@ -1445,7 +1445,7 @@ sub _check_alias {
&& (!ref $invocant || $other_bug->id != $invocant->id)) && (!ref $invocant || $other_bug->id != $invocant->id))
{ {
ThrowUserError("alias_in_use", { alias => $alias, ThrowUserError("alias_in_use", { alias => $alias,
bug_id => $other_bug->id }); other_bug => $other_bug });
} }
} }
......
...@@ -79,13 +79,14 @@ ...@@ -79,13 +79,14 @@
[% ELSIF error == "alias_in_use" %] [% ELSIF error == "alias_in_use" %]
[% title = "Alias In Use" %] [% title = "Alias In Use" %]
[% IF user.can_see_bug(bug_id) %] [% IF user.can_see_bug(other_bug.id) %]
[% terms.Bug %] [%+ bug_id FILTER bug_link(bug_id) FILTER none %] [% terms.Bug %] [%+ other_bug.id FILTER bug_link(other_bug.bug_id) FILTER none %]
is currently using the alias <em>[% alias FILTER html %]</em>.
Please choose another alias[% IF other_bug.check_can_change_field('alias', 0, 1) %] or visit that [% terms.bug %] and change its alias[% END %].
[% ELSE %] [% ELSE %]
Another [% terms.bug %] The alias <em>[% alias FILTER html %]</em> is already used by another
[% terms.bug %] you are not allowed to see. Please choose another alias.
[% END %] [% END %]
has already taken the alias <em>[% alias FILTER html %]</em>.
Please choose another alias.
[% ELSIF error == "alias_is_numeric" %] [% ELSIF error == "alias_is_numeric" %]
[% title = "Alias Is Numeric" %] [% title = "Alias Is Numeric" %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment