From 51e15329e9cf5c4a7a492b0a8689d436f012f45d Mon Sep 17 00:00:00 2001 From: Imran Chaudhry Date: Sat, 28 Sep 2013 01:09:29 +0200 Subject: Bug 798927: An error should be thrown when passing an illegal pronoun r=LpSolit a=justdave --- Bugzilla/Search.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla') 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 { -- cgit v1.2.3-24-g4f1b