]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 211435 - Fix "Table 'namedqueries' was not locked with LOCK TABLES" error; Patch...
authorpreed%sigkill.com <>
Thu, 24 Jul 2003 08:00:20 +0000 (08:00 +0000)
committerpreed%sigkill.com <>
Thu, 24 Jul 2003 08:00:20 +0000 (08:00 +0000)
process_bug.cgi

index 102934313e5ac5e1171ad940b59f0589287ec2e8..e49324f6d984500cbf9775b987da1e2ef2d0b713 100755 (executable)
@@ -1265,6 +1265,7 @@ foreach my $id (@idlist) {
     if ($::FORM{'comment'} || $::FORM{'work_time'}) {
         if ($::FORM{'work_time'} && 
             (!defined $::FORM{'comment'} || $::FORM{'comment'} =~ /^\s*$/)) {
+            SendSQL("UNLOCK TABLES");
             ThrowUserError('comment_required');
         } else {
             AppendComment($id, $::COOKIE{'Bugzilla_login'}, $::FORM{'comment'},