From ec610fd673feb6d6e18d121b5e67aa3f87e7f4ea Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Sat, 5 Mar 2005 08:18:47 +0000 Subject: Bug 277782: _throw_error should unlock tables when tables are locked, automatically Patch By Tomas Kopal r=travis, r=LpSolit, a=justdave --- editversions.cgi | 3 --- 1 file changed, 3 deletions(-) (limited to 'editversions.cgi') diff --git a/editversions.cgi b/editversions.cgi index ee4a83d77..60f60057e 100755 --- a/editversions.cgi +++ b/editversions.cgi @@ -406,16 +406,13 @@ if ($action eq 'update') { if ($version ne $versionold) { unless ($version) { - $dbh->bz_unlock_tables(UNLOCK_ABORT); ThrowUserError('version_blank_name'); exit; } if (TestVersion($product,$version)) { - $dbh->bz_unlock_tables(UNLOCK_ABORT); ThrowUserError('version_already_exists', {'name' => $version, 'product' => $product}); - exit; } SendSQL("UPDATE bugs -- cgit v1.2.3-24-g4f1b