From e1e2ca422db2ad5c4a19c0901b6402d3a7f0b175 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 3 Sep 2014 14:06:29 +0800 Subject: Bug 1054138: add the ability to filter on "fields containing the string" --- .../en/default/account/prefs/bugmail_filter.html.tmpl | 14 +++++++++++--- .../en/default/hook/global/user-error-errors.html.tmpl | 9 +++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) (limited to 'extensions/BugmailFilter/template/en/default') diff --git a/extensions/BugmailFilter/template/en/default/account/prefs/bugmail_filter.html.tmpl b/extensions/BugmailFilter/template/en/default/account/prefs/bugmail_filter.html.tmpl index 12c745adb..43d18f516 100644 --- a/extensions/BugmailFilter/template/en/default/account/prefs/bugmail_filter.html.tmpl +++ b/extensions/BugmailFilter/template/en/default/account/prefs/bugmail_filter.html.tmpl @@ -48,16 +48,24 @@ var cpts = new Array(); [% field.description FILTER html %] [% END %] + the field that was changed + +   + + + + Product: - [% FOREACH product IN selectable_products %] @@ -139,11 +147,11 @@ var cpts = new Array(); + onChange="onFilterRemoveChange()"> [% filter.product ? filter.product.name : 'Any' FILTER html %] [% filter.component ? filter.component.name : 'Any' FILTER html %] - [% filter.field ? fields.${filter.field.name} || filter.field.description : 'Any' FILTER html %] + [% filter.field_description FILTER html %] [% filter.relationship ? filter.relationship_name : 'Any' FILTER html %] [% filter.action ? 'Exclude' : 'Include' %] diff --git a/extensions/BugmailFilter/template/en/default/hook/global/user-error-errors.html.tmpl b/extensions/BugmailFilter/template/en/default/hook/global/user-error-errors.html.tmpl index 380c07ee5..4be894c6f 100644 --- a/extensions/BugmailFilter/template/en/default/hook/global/user-error-errors.html.tmpl +++ b/extensions/BugmailFilter/template/en/default/hook/global/user-error-errors.html.tmpl @@ -10,4 +10,13 @@ [% title = "Filter Already Exists" %] A filter already exists with the selected criteria. +[% ELSIF error == "bugmail_filter_too_long" %] + [% title = "Invalid Field Name" %] + The field name to filter on is too long (must be 63 character or fewer). + +[% ELSIF error == "bugmail_filter_invalid" %] + [% title = "Invalid Field Name" %] + The field name contains invalid characters (alpha-numeric, underscore and + period only). + [% END %] -- cgit v1.2.3-24-g4f1b