From d3395fe6bb0c74f4fe6e69387cba62ae633b7e27 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 30 Nov 2005 20:00:53 +0000 Subject: Bug 314039: editusers.cgi edits user 0 if you don't pass a userid - Patch by Frédéric Buclin r=wurblzap a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/global/code-error.html.tmpl | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'template') diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl index 0fe946cb5..141930b07 100644 --- a/template/en/default/global/code-error.html.tmpl +++ b/template/en/default/global/code-error.html.tmpl @@ -227,9 +227,16 @@ The keyword ID [% id FILTER html %] couldn't be found. - [% ELSIF error == "invalid_user_id" %] - [% title = "Invalid User ID" %] - There is no user account with ID [% userid FILTER html %]. + [% ELSIF error == "invalid_user" %] + [% title = "Invalid User" %] + There is no user account + [% IF user_id %] + with ID [% user_id FILTER html %]. + [% ELSIF user_login %] + with login name [% user_login FILTER html %]. + [% ELSE %] + given. + [% END %] [% ELSIF error == "missing_bug_id" %] No [% terms.bug %] ID was given. -- cgit v1.2.3-24-g4f1b