summaryrefslogtreecommitdiffstats
path: root/editversions.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'editversions.cgi')
-rwxr-xr-xeditversions.cgi5
1 files changed, 1 insertions, 4 deletions
diff --git a/editversions.cgi b/editversions.cgi
index a3a2e2cc5..c426891ed 100755
--- a/editversions.cgi
+++ b/editversions.cgi
@@ -124,6 +124,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;
@@ -444,7 +445,6 @@ if ($action eq 'delete') {
WHERE product_id = $product_id
AND value=" . SqlQuote($version));
print "Version deleted.<P>\n";
- SendSQL("UNLOCK TABLES");
unlink "$datadir/versioncache";
PutTrailer($localtrailer);
@@ -509,13 +509,11 @@ if ($action eq 'update') {
unless ($version) {
print "Sorry, I can't delete the version text.";
PutTrailer($localtrailer);
- SendSQL("UNLOCK TABLES");
exit;
}
if (TestVersion($product,$version)) {
print "Sorry, version '$version' is already in use.";
PutTrailer($localtrailer);
- SendSQL("UNLOCK TABLES");
exit;
}
SendSQL("UPDATE bugs
@@ -530,7 +528,6 @@ if ($action eq 'update') {
unlink "$datadir/versioncache";
print "Updated version.<BR>\n";
}
- SendSQL("UNLOCK TABLES");
PutTrailer($localtrailer);
exit;