aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-12-09 17:22:20 +0000
committerjocuri%softhome.net <>2004-12-09 17:22:20 +0000
commit1aa21d6c316162bb1a5568cf7f3639aab2ff5ea3 (patch)
tree6ae9681c5a6fa8c5c548ce6d9a03bdadc6db004a /request.cgi
parentPatch for bug 182375: Do not permit flags with spaces or commas; patch by FrĂ... (diff)
downloadbugzilla-1aa21d6c316162bb1a5568cf7f3639aab2ff5ea3.tar.gz
bugzilla-1aa21d6c316162bb1a5568cf7f3639aab2ff5ea3.tar.bz2
bugzilla-1aa21d6c316162bb1a5568cf7f3639aab2ff5ea3.zip
Patch for bug 233049: Improve error when filtering requests with component not in the selected product; patch by Marc Schumann <wurblzap@gmail.com>, r=vladd, a=justdave.
Diffstat (limited to 'request.cgi')
-rwxr-xr-xrequest.cgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/request.cgi b/request.cgi
index 445783d47..f872d1d28 100755
--- a/request.cgi
+++ b/request.cgi
@@ -170,10 +170,11 @@ sub queue {
push(@criteria, "bugs.component_id = $component_id");
push(@excluded_columns, 'component') unless $cgi->param('do_union');
}
- else { ThrowCodeError("unknown_component", { component => $cgi->param('component') }) }
+ else { ThrowUserError("component_not_valid", { 'product' => $cgi->param('product'),
+ 'name' => $cgi->param('component') }) }
}
}
- else { ThrowCodeError("unknown_product", { product => $cgi->param('product') }) }
+ else { ThrowUserError("product_doesnt_exist", { 'product' => $cgi->param('product') }) }
}
# Filter results by flag types.