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:
@@ -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";
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user