From 7f377876f0a671ed9e3a2ffd8d64b6b9c2e14444 Mon Sep 17 00:00:00 2001 From: "justdave%bugzilla.org" <> Date: Tue, 11 Mar 2008 20:50:05 +0000 Subject: [PATCH] Bug 422111: rederive regexp-based group memberships on the destination user after merging Bugzilla accounts, since some of the merged group memberships may no longer apply. a=LpSolit --- contrib/merge-users.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/merge-users.pl b/contrib/merge-users.pl index f071f7c2c1..5769b8a3dc 100644 --- a/contrib/merge-users.pl +++ b/contrib/merge-users.pl @@ -49,6 +49,7 @@ use lib qw(.); use Bugzilla; use Bugzilla::Constants; use Bugzilla::Util; +use Bugzilla::User; use Getopt::Long; use Pod::Usage; @@ -233,4 +234,7 @@ $dbh->do('DELETE FROM profiles WHERE userid = ?', undef, $old_id); # Unlock tables $dbh->bz_unlock_tables(); +my $user = new Bugzilla::User($new_id); +$user->derive_regexp_groups(); + print "Done.\n"; -- 2.47.2