diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-04-24 23:10:24 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-04-24 23:10:24 +0200 |
commit | b7041049f3aa99499f400fecc0dfb84320eb2542 (patch) | |
tree | 7ffa59d4e36cfd4685382317384fbeeede43b70d | |
parent | 0d714dcec16d9d8760f6656d9be0b29964d51343 (diff) | |
download | bugzilla-b7041049f3aa99499f400fecc0dfb84320eb2542.tar.gz bugzilla-b7041049f3aa99499f400fecc0dfb84320eb2542.tar.xz |
Bug 1359184 - Use automation user instead of nobody for movecomponent.pl
-rwxr-xr-x | scripts/movecomponent.pl | 4 |
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) |