зеркало из https://github.com/mozilla/pjs.git
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.
This commit is contained in:
Родитель
218df182af
Коммит
c558c75a1a
|
@ -170,10 +170,11 @@ sub queue {
|
||||||
push(@criteria, "bugs.component_id = $component_id");
|
push(@criteria, "bugs.component_id = $component_id");
|
||||||
push(@excluded_columns, 'component') unless $cgi->param('do_union');
|
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.
|
# Filter results by flag types.
|
||||||
|
|
|
@ -235,14 +235,6 @@
|
||||||
I could not figure out what you wanted to do.
|
I could not figure out what you wanted to do.
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
[% ELSIF error == "unknown_component" %]
|
|
||||||
[% title = "Unknown Component" %]
|
|
||||||
There is no component named <em>[% component FILTER html %]</em>.
|
|
||||||
|
|
||||||
[% ELSIF error == "unknown_product" %]
|
|
||||||
[% title = "Unknown Product" %]
|
|
||||||
There is no product named <em>[% product FILTER html %]</em>.
|
|
||||||
|
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
[% title = "Internal error" %]
|
[% title = "Internal error" %]
|
||||||
An internal error has occured, but [% terms.Bugzilla %] doesn't know
|
An internal error has occured, but [% terms.Bugzilla %] doesn't know
|
||||||
|
|
Загрузка…
Ссылка в новой задаче