]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 302407: Prevent already_locked error in whine.pl with Bugzilla::User.pm
authorbugreport%peshkin.net <>
Sun, 21 Aug 2005 00:23:56 +0000 (00:23 +0000)
committerbugreport%peshkin.net <>
Sun, 21 Aug 2005 00:23:56 +0000 (00:23 +0000)
Patch by Albert Ting <altlst@sonic.net>
r=joel, a=myk

whine.pl

index 259195720f6aa40a9c013cd8a1afcac28f0bb152..fea9d3da36be8b71be69d1efc5d086b4f10afb9a 100755 (executable)
--- 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);
                             }
                         }
                     }