From: bugreport%peshkin.net <> Date: Sun, 21 Aug 2005 00:23:56 +0000 (+0000) Subject: Bug 302407: Prevent already_locked error in whine.pl with Bugzilla::User.pm X-Git-Tag: bugzilla-2.20~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71fe0e45ba23d56c912ccc6ea3b1c071fcf7b4eb;p=thirdparty%2Fbugzilla.git Bug 302407: Prevent already_locked error in whine.pl with Bugzilla::User.pm Patch by Albert Ting r=joel, a=myk --- diff --git a/whine.pl b/whine.pl index 259195720f..fea9d3da36 100755 --- a/whine.pl +++ b/whine.pl @@ -263,7 +263,7 @@ sub get_next_event { $user_objects{$mailto} = $owner; } elsif ($whineatothers) { - $user_objects{$mailto} = Bugzilla::User->new($mailto); + $user_objects{$mailto} = Bugzilla::User->new($mailto,DERIVE_GROUPS_TABLES_ALREADY_LOCKED); } } } @@ -282,7 +282,7 @@ sub get_next_event { for my $row (@{$sth->fetchall_arrayref}) { if (not defined $user_objects{$row->[0]}) { $user_objects{$row->[0]} = - Bugzilla::User->new($row->[0]); + Bugzilla::User->new($row->[0],DERIVE_GROUPS_TABLES_ALREADY_LOCKED); } } }