summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search.pm
diff options
context:
space:
mode:
authorImran Chaudhry <ichaudhry+mozilla@gmail.com>2013-09-28 01:09:29 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2013-09-28 01:09:29 +0200
commit51e15329e9cf5c4a7a492b0a8689d436f012f45d (patch)
tree71eb93d3c4b903c470d6c48320e44a2312018cf4 /Bugzilla/Search.pm
parent2d802ebc16003e27fe86295ccd6b7c47996c7314 (diff)
downloadbugzilla-51e15329e9cf5c4a7a492b0a8689d436f012f45d.tar.gz
bugzilla-51e15329e9cf5c4a7a492b0a8689d436f012f45d.tar.xz
Bug 798927: An error should be thrown when passing an illegal pronoun
r=LpSolit a=justdave
Diffstat (limited to 'Bugzilla/Search.pm')
-rw-r--r--Bugzilla/Search.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index a7600f449..7bd4381ed 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -2196,7 +2196,8 @@ sub pronoun {
if ($noun eq "%qacontact%") {
return "COALESCE(bugs.qa_contact,0)";
}
- return 0;
+
+ ThrowUserError('illegal_pronoun', { pronoun => $noun });
}
sub _contact_pronoun {