From fcccff080fcfb784354f4bf44d863cb4482a469e Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Thu, 8 Jul 2010 11:23:59 -0700 Subject: Bug 574556: Refactor Search.pm so that we're not doing $$some_var everywhere. Instead, we pass around a hashref and update the hashref. This patch also includes some cleanup for bugs surrounding percentage_complete, attachments.isobsolete, attachments.ispatch, and owner_idle_time. r=mkanat, a=mkanat --- template/en/default/global/code-error.html.tmpl | 4 ---- template/en/default/global/user-error.html.tmpl | 22 ++++++++++++++++------ 2 files changed, 16 insertions(+), 10 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 43644f703..849008adb 100644 --- a/template/en/default/global/code-error.html.tmpl +++ b/template/en/default/global/code-error.html.tmpl @@ -184,10 +184,6 @@ '[% field.description FILTER html %]' ([% field.name FILTER html %]) is not a custom field. - [% ELSIF error == "field_type_mismatch" %] - Cannot seem to handle [% field FILTER html %] - and [% type FILTER html %] together. - [% ELSIF error == "field_type_not_specified" %] [% title = "Field Type Not Specified" %] You must specify a type when creating a custom field. diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index 490941807..3f7248c40 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -744,11 +744,15 @@ [% title = "Group not specified" %] No group was specified. + [% ELSIF error == "group_not_visible" %] + [% title = "Group Not Allowed" %] + You are not allowed to see members of the [% group.name FILTER html %] + group. + [% ELSIF error == "system_group_not_deletable" %] [% title = "System Groups not deletable" %] [% name FILTER html %] is a system group. This group cannot be deleted. - [% ELSIF error == "group_unknown" %] [% title = "Unknown Group" %] The group [% name FILTER html %] does not exist. Please specify @@ -1288,6 +1292,9 @@ [% IF class == "Bugzilla::User" %] Either you mis-typed the name or that user has not yet registered for a [% terms.Bugzilla %] account. + [% ELSIF class == "Bugzilla::Keyword" %] + The legal keyword names are listed + here. [% END %] [% ELSIF error == "old_password_incorrect" %] @@ -1477,6 +1484,12 @@ and the "matches" search can only be used with the "content" field. + [% ELSIF error == "search_field_operator_invalid" %] + [% terms.Bugzilla %] does not support using the + "[%+ field_descs.$field FILTER html %]" ([% field FILTER html %]) + field with the "[% search_descs.$operator %]" ([% operator FILTER html %]) + search type. + [% ELSIF error == "series_already_exists" %] [% title = "Series Already Exists" %] [% docslinks = {'reporting.html' => 'Reporting'} %] @@ -1562,11 +1575,6 @@ I could not figure out what you wanted to do. [% END %] - [% ELSIF error == "unknown_keyword" %] - [% title = "Unknown Keyword" %] - [% keyword FILTER html %] is not a known keyword. - The legal keyword names are listed here. - [% ELSIF error == "unknown_tab" %] [% title = "Unknown Tab" %] [% current_tab_name FILTER html %] is not a legal tab name. @@ -1759,6 +1767,8 @@ field [% ELSIF class == "Bugzilla::Group" %] group + [% ELSIF class == "Bugzilla::Keyword" %] + keyword [% ELSIF class == "Bugzilla::Product" %] product [% ELSIF class == "Bugzilla::Search::Recent" %] -- cgit v1.2.3-24-g4f1b