diff options
author | Vladimir Panteleev <github.private@thecybershadow.net> | 2018-03-18 06:00:50 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-03-18 06:00:50 +0100 |
commit | 759243934df6a3a1d4bcfacc58ce842206923731 (patch) | |
tree | 759dc4f1b24c6f33c30f1ee787a99acde54df213 /scripts/movebugs.pl | |
parent | 38c94eb24d045f086e257c095113ad39ce603e65 (diff) | |
download | bugzilla-759243934df6a3a1d4bcfacc58ce842206923731.tar.gz bugzilla-759243934df6a3a1d4bcfacc58ce842206923731.tar.xz |
Bug 1446236 - Allow customizing the name of the "nobody" user (nobody@mozilla.org)
Diffstat (limited to 'scripts/movebugs.pl')
-rwxr-xr-x | scripts/movebugs.pl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/movebugs.pl b/scripts/movebugs.pl index 2c643cdfb..55a43d943 100755 --- a/scripts/movebugs.pl +++ b/scripts/movebugs.pl @@ -73,10 +73,12 @@ my $component_field_id = $dbh->selectrow_array( $component_field_id or die "Can't find field ID for 'component' field\n"; +my $nobody = Bugzilla->params->{'nobody_user'}; my $user_id = $dbh->selectrow_array( - "SELECT userid FROM profiles WHERE login_name='nobody\@mozilla.org'"); + "SELECT userid FROM profiles WHERE login_name=?", + undef, $nobody); $user_id - or die "Can't find user ID for 'nobody\@mozilla.org'\n"; + or die "Can't find user ID for '$nobody'\n"; $dbh->bz_start_transaction(); |