Commit 1a9927c0 authored by ghendricks%novell.com's avatar ghendricks%novell.com

Bug 494628 - Crash when trying to file a bug in a closed product r=LpSolit…

Bug 494628 - Crash when trying to file a bug in a closed product r=LpSolit patch by ghendricks@novell.com
parent c7093fe7
...@@ -728,7 +728,7 @@ sub can_enter_product { ...@@ -728,7 +728,7 @@ sub can_enter_product {
ThrowUserError('entry_access_denied', {product => $product_name}); ThrowUserError('entry_access_denied', {product => $product_name});
} }
# It could be closed for bug entry... # It could be closed for bug entry...
elsif ($product->disallow_new) { elsif (!$product->is_active) {
ThrowUserError('product_disabled', {product => $product}); ThrowUserError('product_disabled', {product => $product});
} }
# It could have no components... # It could have no components...
......
...@@ -82,8 +82,8 @@ from '[% product.name FILTER html %]' product ...@@ -82,8 +82,8 @@ from '[% product.name FILTER html %]' product
</tr> </tr>
<tr> <tr>
<TD VALIGN="top">Closed for [% terms.bugs %]:</TD> <TD VALIGN="top">Open for [% terms.bugs %]:</TD>
<TD VALIGN="top">[% IF product.disallow_new %]Yes[% ELSE %]No[% END %]</td> <TD VALIGN="top">[% IF product.is_active %]Yes[% ELSE %]No[% END %]</td>
</tr> </tr>
<tr> <tr>
<td valign="top">[% terms.Bugs %]:</td> <td valign="top">[% terms.Bugs %]:</td>
......
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
selected="selected" selected="selected"
[% ELSIF (control_field && control_value [% ELSIF (control_field && control_value
&& !bug.${control_field.name}.contains(control_value.name)) && !bug.${control_field.name}.contains(control_value.name))
|| (field.name == "product" && legal_value.disallow_new) || (field.name == "product" && !legal_value.is_active)
%] %]
class="bz_hidden_option" disabled="disabled" class="bz_hidden_option" disabled="disabled"
[% END %]> [% END %]>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment