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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user