summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
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 /Bugzilla/WebService
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 'Bugzilla/WebService')
-rw-r--r--Bugzilla/WebService/Bug.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index 58a39bf21..ee5591027 100644
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -430,7 +430,7 @@ sub create {
Bugzilla->login(LOGIN_REQUIRED);
$params = Bugzilla::Bug::map_fields($params);
my $bug = Bugzilla::Bug->create($params);
- Bugzilla::BugMail::Send($bug->bug_id, { changer => $bug->reporter->login });
+ Bugzilla::BugMail::Send($bug->bug_id, { changer => $bug->reporter });
return { id => $self->type('int', $bug->bug_id) };
}
@@ -520,7 +520,7 @@ sub add_comment {
$dbh->bz_commit_transaction();
# Send mail.
- Bugzilla::BugMail::Send($bug->bug_id, { changer => Bugzilla->user->login });
+ Bugzilla::BugMail::Send($bug->bug_id, { changer => Bugzilla->user });
return { id => $self->type('int', $new_comment_id) };
}
@@ -566,7 +566,7 @@ sub update_see_also {
$changes{$bug->id}->{see_also} = { added => [], removed => [] };
}
- Bugzilla::BugMail::Send($bug->id, { changer => $user->login });
+ Bugzilla::BugMail::Send($bug->id, { changer => $user });
}
return { changes => \%changes };