Bug 238544: Emit appropriate error if content and matches are used in

invalid search combinations.
r=jouni
a=justdave


git-svn-id: svn://10.0.0.236/trunk@159636 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bugreport%peshkin.net
2004-07-22 06:48:59 +00:00
parent e20cf7fbb7
commit 418761147e
2 changed files with 12 additions and 0 deletions

View File

@@ -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";
},