diff options
author | 2004-07-27 22:14:51 +0000 | |
---|---|---|
committer | 2004-07-27 22:14:51 +0000 | |
commit | a287712c2a4dc790c028b38cbd6ff54f48b45e68 (patch) | |
tree | 174a22bee531f0cff1db2ef88f0df649d53e020e /editproducts.cgi | |
parent | Bug 251837: Add UI to add/remove 'My Bugs' link in footer (diff) | |
download | bugzilla-a287712c2a4dc790c028b38cbd6ff54f48b45e68.tar.gz bugzilla-a287712c2a4dc790c028b38cbd6ff54f48b45e68.tar.bz2 bugzilla-a287712c2a4dc790c028b38cbd6ff54f48b45e68.zip |
Bug 252450: Unlock tables in edit*.cgi before sending trailer
patch by marc
r=kiko
a=justdave
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-x | editproducts.cgi | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/editproducts.cgi b/editproducts.cgi index c539465af..bff58fa6c 100755 --- a/editproducts.cgi +++ b/editproducts.cgi @@ -149,6 +149,7 @@ sub EmitFormElements ($$$$$$$$) sub PutTrailer (@) { my (@links) = ("Back to the <A HREF=\"query.cgi\">query page</A>", @_); + SendSQL("UNLOCK TABLES"); my $count = $#links; my $num = 0; @@ -671,8 +672,6 @@ if ($action eq 'delete') { WHERE id=$product_id"); print "Product '$product' deleted.<BR>\n"; - SendSQL("UNLOCK TABLES"); - unlink "$datadir/versioncache"; PutTrailer($localtrailer); exit; @@ -1045,7 +1044,6 @@ if ($action eq 'updategroupcontrols') { } print "added $count bugs<p>\n"; } - SendSQL("UNLOCK TABLES"); print "Group control updates done<P>\n"; PutTrailer($localtrailer); @@ -1119,7 +1117,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; } @@ -1170,7 +1167,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; } @@ -1186,13 +1182,11 @@ if ($action eq 'update') { if ($product ne $productold) { unless ($product) { print "Sorry, I can't delete the product name."; - SendSQL("UNLOCK TABLES"); PutTrailer($localtrailer); exit; } if (TestProduct($product)) { print "Sorry, product name '$product' is already in use."; - SendSQL("UNLOCK TABLES"); PutTrailer($localtrailer); exit; } |