From: ghendricks%novell.com <> Date: Mon, 1 Jun 2009 14:43:12 +0000 (+0000) Subject: Bug 494628 - Crash when trying to file a bug in a closed product r=LpSolit patch... X-Git-Tag: bugzilla-3.5.1~212 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a9927c0c012c6c2dcc82552d0e397c992599754;p=thirdparty%2Fbugzilla.git Bug 494628 - Crash when trying to file a bug in a closed product r=LpSolit patch by ghendricks@novell.com --- diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 58183a0050..55be2cf9e6 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -728,7 +728,7 @@ sub can_enter_product { ThrowUserError('entry_access_denied', {product => $product_name}); } # It could be closed for bug entry... - elsif ($product->disallow_new) { + elsif (!$product->is_active) { ThrowUserError('product_disabled', {product => $product}); } # It could have no components... diff --git a/template/en/default/admin/components/confirm-delete.html.tmpl b/template/en/default/admin/components/confirm-delete.html.tmpl index 53bba1e357..d0a1385f18 100644 --- a/template/en/default/admin/components/confirm-delete.html.tmpl +++ b/template/en/default/admin/components/confirm-delete.html.tmpl @@ -82,8 +82,8 @@ from '[% product.name FILTER html %]' product