summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/movecomponent.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/movecomponent.pl b/scripts/movecomponent.pl
index c558808fc..4c3b26cfb 100755
--- a/scripts/movecomponent.pl
+++ b/scripts/movecomponent.pl
@@ -122,7 +122,9 @@ $dbh->do("UPDATE bugs SET lastdiffed = NOW()
WHERE component_id = ?", undef, $component->id);
# Update bugs_activity
-my $userid = 1; # nobody@mozilla.org
+my $auto_user = Bugzilla::User->check({ name => 'automation@bmo.tld' });
+my $userid = $auto_user->id;
+Bugzilla->set_user($auto_user);
$dbh->do("INSERT INTO bugs_activity(bug_id, who, bug_when, fieldid, removed,
added)