From: preed%sigkill.com <> Date: Thu, 24 Jul 2003 08:00:20 +0000 (+0000) Subject: Bug 211435 - Fix "Table 'namedqueries' was not locked with LOCK TABLES" error; Patch... X-Git-Tag: bugzilla-2.17.5~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fac05965d08f290fe19dd6f8e91616d11b56563;p=thirdparty%2Fbugzilla.git Bug 211435 - Fix "Table 'namedqueries' was not locked with LOCK TABLES" error; Patch by jocuri@softhome.net (Vlad Dascalu), r=bbaetz, a=justdave --- diff --git a/process_bug.cgi b/process_bug.cgi index 102934313e..e49324f6d9 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -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'},