summaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authorReed Loden <reed@reedloden.com>2010-05-07 05:44:58 +0200
committerReed Loden <reed@reedloden.com>2010-05-07 05:44:58 +0200
commitb4c91adafa45e4e1146ca1dabab27404dac6bab6 (patch)
treefa98b726cf2726aef6638289db59d8c3df86eda4 /process_bug.cgi
parent2ca283e7bfc85d86ffd5f312bbab89eedcf9929b (diff)
downloadbugzilla-b4c91adafa45e4e1146ca1dabab27404dac6bab6.tar.gz
bugzilla-b4c91adafa45e4e1146ca1dabab27404dac6bab6.tar.xz
Bug 395451 - "Bugzilla::BugMail needs to use Bug objects internally instead of direct SQL"
[r=mkanat a=mkanat]
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi8
1 files changed, 4 insertions, 4 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index 3f1e81bcb..51664e3c5 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -469,7 +469,7 @@ if ($move_action eq Bugzilla->params->{'move-button-text'}) {
# Now send emails.
foreach my $bug (@bug_objects) {
- $vars->{'mailrecipients'} = { 'changer' => $user->login };
+ $vars->{'mailrecipients'} = { 'changer' => $user };
$vars->{'id'} = $bug->id;
$vars->{'type'} = "move";
send_results($bug->id, $vars);
@@ -589,7 +589,7 @@ foreach my $bug (@bug_objects) {
cc => [split(/[\s,]+/, $old_cc)],
owner => $old_own,
qacontact => $old_qa,
- changer => Bugzilla->user->login };
+ changer => Bugzilla->user };
$vars->{'id'} = $bug->id;
$vars->{'type'} = "bug";
@@ -602,7 +602,7 @@ foreach my $bug (@bug_objects) {
# other bug of any changes to that bug.
my $new_dup_id = $changes->{'dup_id'} ? $changes->{'dup_id'}->[1] : undef;
if ($new_dup_id) {
- $vars->{'mailrecipients'} = { 'changer' => Bugzilla->user->login };
+ $vars->{'mailrecipients'} = { 'changer' => Bugzilla->user };
$vars->{'id'} = $new_dup_id;
$vars->{'type'} = "dupe";
@@ -614,7 +614,7 @@ foreach my $bug (@bug_objects) {
my %all_dep_changes = (%notify_deps, %changed_deps);
foreach my $id (sort { $a <=> $b } (keys %all_dep_changes)) {
- $vars->{'mailrecipients'} = { 'changer' => Bugzilla->user->login };
+ $vars->{'mailrecipients'} = { 'changer' => Bugzilla->user };
$vars->{'id'} = $id;
$vars->{'type'} = "dep";