From 44119f9d89be2b5d25351637c35614ea9a180c69 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 7 Jul 2005 21:08:41 +0000 Subject: Bug 223570: Creating a bug in a product with no versions results in internal error - Patch by A. Karl Kornel r=LpSolit a=justdave --- template/en/default/global/user-error.html.tmpl | 28 +++++++++++++------------ 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'template') diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index 2696ede15..20d8371f4 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -746,7 +746,21 @@ [% ELSIF error == "missing_category" %] [% title = "Missing Category" %] You did not specify a category for this series. - + + [% ELSIF error == "missing_version_or_component" %] + [% title = BLOCK %]Missing [% missing_item FILTER none %][% END %] + Sorry; there needs to be at least one [% missing_item FILTER lower %] + associated with the product [% product FILTER html %] in order to + create a new [% terms.bug %]. + [% IF UserInGroup("editcomponents") %] + Create a new + [%+ missing_item FILTER lower %]. + [% ELSE %] + Please contact [% Param("maintainer") %], giving the name of + the product in which you tried to create a new [% terms.bug %]. + [% END %] + [% ELSIF error == "missing_content_type" %] [% title = "Missing Content-Type" %] You asked [% terms.Bugzilla %] to auto-detect the content type, but @@ -825,18 +839,6 @@ You cannot change the component for a list of [% terms.bugs %] covering more than one product. - [% ELSIF error == "no_components" %] - [% title = "No Components" %] - Sorry; there needs to be at least one component for this product in order - to create a new [% terms.bug %]. - [% IF UserInGroup("editcomponents") %] - Create - a new component. - [% ELSE %] - Please contact [% Param("maintainer") %], giving the name of - the product in which you tried to create a new [% terms.bug %]. - [% END %] - [% ELSIF error == "no_dupe_stats" %] [% title = "Cannot Find Duplicate Statistics" %] There are no duplicate statistics for today ([% today FILTER html %]) -- cgit v1.2.3-24-g4f1b