From fba06c0a5f82ddf2f73ef068752d697666464dc1 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Tue, 27 Jul 2004 22:13:48 +0000 Subject: Bug 252450: Unlock tables in edit*.cgi before sending trailer r=kiko a=justdave --- editproducts.cgi | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'editproducts.cgi') diff --git a/editproducts.cgi b/editproducts.cgi index 17bcfd703..99640a44e 100755 --- a/editproducts.cgi +++ b/editproducts.cgi @@ -149,6 +149,7 @@ sub EmitFormElements ($$$$$$$$) sub PutTrailer (@) { my (@links) = ("Back to the query page", @_); + SendSQL("UNLOCK TABLES"); my $count = $#links; my $num = 0; @@ -685,8 +686,6 @@ if ($action eq 'delete') { WHERE id=$product_id"); print "Product '$product' deleted.
\n"; - SendSQL("UNLOCK TABLES"); - unlink "$datadir/versioncache"; PutTrailer($localtrailer); exit; @@ -1059,7 +1058,6 @@ if ($action eq 'updategroupcontrols') { } print "added $count bugs

\n"; } - SendSQL("UNLOCK TABLES"); print "Group control updates done

\n"; PutTrailer($localtrailer); @@ -1133,7 +1131,6 @@ if ($action eq 'update') { if ($description ne $descriptionold) { unless ($description) { print "Sorry, I can't delete the description."; - SendSQL("UNLOCK TABLES"); PutTrailer($localtrailer); exit; } @@ -1184,7 +1181,6 @@ if ($action eq 'update') { " AND product_id = $product_id"); if (!FetchOneColumn()) { print "Sorry, the milestone $defaultmilestone must be defined first."; - SendSQL("UNLOCK TABLES"); PutTrailer($localtrailer); exit; } -- cgit v1.2.3-24-g4f1b