summaryrefslogtreecommitdiffstats
path: root/editproducts.cgi
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2004-07-28 00:13:48 +0200
committerbugreport%peshkin.net <>2004-07-28 00:13:48 +0200
commitfba06c0a5f82ddf2f73ef068752d697666464dc1 (patch)
tree1e3e2655bdc0553fac9fe7e9ee4b607873f69f3f /editproducts.cgi
parent667a7abdb6d998df719317e101eb08860f1b78d1 (diff)
downloadbugzilla-fba06c0a5f82ddf2f73ef068752d697666464dc1.tar.gz
bugzilla-fba06c0a5f82ddf2f73ef068752d697666464dc1.tar.xz
Bug 252450: Unlock tables in edit*.cgi before sending trailer
r=kiko a=justdave
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-xeditproducts.cgi6
1 files changed, 1 insertions, 5 deletions
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 <A HREF=\"query.cgi\">query page</A>", @_);
+ 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.<BR>\n";
- SendSQL("UNLOCK TABLES");
-
unlink "$datadir/versioncache";
PutTrailer($localtrailer);
exit;
@@ -1059,7 +1058,6 @@ if ($action eq 'updategroupcontrols') {
}
print "added $count bugs<p>\n";
}
- SendSQL("UNLOCK TABLES");
print "Group control updates done<P>\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;
}