From cc05f16850151b5e4d8444ab517c1106724533a7 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 8 Jan 2006 00:01:35 +0000 Subject: [PATCH] =?utf8?q?Bug=20322212:=20DERIVE=5FGROUPS=5FTABLES=5FALREA?= =?utf8?q?DY=5FLOCKED=20is=20ignored=20on=202.20+=20when=20creating=20a=20?= =?utf8?q?new=20user=20object=20-=20Patch=20by=20Fr=C3=A9d=C3=A9ric=20Bucl?= =?utf8?q?in=20=20r=3Dwicked=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Bugzilla/User.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index df2eb14073..909511ca24 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -67,7 +67,7 @@ use constant MATCH_SKIP_CONFIRM => 1; sub new { my $invocant = shift; - my $user_id = shift; + my ($user_id, $tables_locked) = @_; if ($user_id) { my $uid = $user_id; @@ -76,7 +76,7 @@ sub new { {argument => 'userID', value => $uid, function => 'Bugzilla::User::new'}); - return $invocant->_create("userid=?", $user_id); + return $invocant->_create('userid = ?', $user_id, $tables_locked); } else { return $invocant->_create; @@ -93,10 +93,11 @@ sub new { # in the id its already had to validate (or the User.pm object, of course) sub new_from_login { my $invocant = shift; - my $login = shift; + my ($login, $tables_locked) = @_; my $dbh = Bugzilla->dbh; - return $invocant->_create($dbh->sql_istrcmp('login_name', '?'), $login); + return $invocant->_create($dbh->sql_istrcmp('login_name', '?'), + $login, $tables_locked); } # Internal helper for the above |new| methods -- 2.47.2