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.

git-svn-id: svn://10.0.0.236/trunk@166481 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jocuri%softhome.net
2004-12-09 09:22:20 +00:00
parent 0adf3c1cd8
commit 0a15c88e9a
2 changed files with 3 additions and 10 deletions

View File

@@ -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.