diff options
author | lpsolit%gmail.com <> | 2005-10-24 06:47:50 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-10-24 06:47:50 +0200 |
commit | 46c89016520cf272223cba52e704388fa94b4392 (patch) | |
tree | 7fabf7e470cb3609bd6bbdd40a1c23463a10e5e0 /enter_bug.cgi | |
parent | d0042bb7c9340ef4dd80b3abe3b2f45ed4bf862b (diff) | |
download | bugzilla-46c89016520cf272223cba52e704388fa94b4392.tar.gz bugzilla-46c89016520cf272223cba52e704388fa94b4392.tar.xz |
Bug 312307: Misused Throw*Error tags in code and templates - Patch by Dennis Melentyev <dennis.melentyev@infopulse.com.ua> r=LpSolit a=justdave
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-x | enter_bug.cgi | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index e2772ccec..569d9554c 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -334,10 +334,7 @@ GetVersionTable(); my $product_id = get_product_id($product); -if (0 == @{$::components{$product}}) { - ThrowUserError("no_components", {product => $product}); -} -elsif (1 == @{$::components{$product}}) { +if (1 == @{$::components{$product}}) { # Only one component; just pick it. $cgi->param('component', $::components{$product}->[0]); } |