Commit 7fac0596 authored by preed%sigkill.com's avatar preed%sigkill.com

Bug 211435 - Fix "Table 'namedqueries' was not locked with LOCK TABLES" error;…

Bug 211435 - Fix "Table 'namedqueries' was not locked with LOCK TABLES" error; Patch by jocuri@softhome.net (Vlad Dascalu), r=bbaetz, a=justdave
parent c9bb537f
......@@ -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'},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment