diff options
author | lpsolit%gmail.com <> | 2005-07-07 23:08:41 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-07-07 23:08:41 +0200 |
commit | 44119f9d89be2b5d25351637c35614ea9a180c69 (patch) | |
tree | fb458891e0f3388c02f29a192337cc46395900c2 /template/en | |
parent | 73270363b7dabda4406b5ab638ead98a951eebeb (diff) | |
download | bugzilla-44119f9d89be2b5d25351637c35614ea9a180c69.tar.gz bugzilla-44119f9d89be2b5d25351637c35614ea9a180c69.tar.xz |
Bug 223570: Creating a bug in a product with no versions results in internal error - Patch by A. Karl Kornel <karl@kornel.name> r=LpSolit a=justdave
Diffstat (limited to 'template/en')
-rw-r--r-- | template/en/default/global/user-error.html.tmpl | 28 |
1 files changed, 15 insertions, 13 deletions
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 <em>[% product FILTER html %]</em> in order to + create a new [% terms.bug %]. + [% IF UserInGroup("editcomponents") %] + <a href="edit[% missing_item FILTER lower %]s.cgi?product= + [%- product FILTER url_quote %]">Create a new + [%+ missing_item FILTER lower %]</a>. + [% 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") %] - <a href="editcomponents.cgi?product=[% product FILTER url_quote %]">Create - a new component</a>. - [% 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 %]) |