From bb587d719bbe170eacf0506f15565e926f5ffd7e Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Thu, 22 Jul 2004 13:48:59 +0000 Subject: Bug 238544: Emit appropriate error if content and matches are used in invalid search combinations. r=jouni a=justdave --- Bugzilla/Search.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Bugzilla/Search.pm') diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index bf81451ae..49f32fdf8 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -478,6 +478,9 @@ sub init { push(@fields, $select_term); } }, + "^content," => sub { + ThrowUserError("search_content_without_matches"); + }, "^commenter,(?:equals|anyexact),(%\\w+%)" => sub { my $match = pronoun($1, $user); my $chartseq = $chartid; @@ -828,6 +831,9 @@ sub init { ",lessthan" => sub { $term = "$ff < $q"; }, + ",matches" => sub { + ThrowUserError("search_content_without_matches"); + }, ",greaterthan" => sub { $term = "$ff > $q"; }, -- cgit v1.2.3-24-g4f1b