[bugzilla-gnome-org-extensions] 4.4 migration: Fix email sending



commit e73946ca6f2e6b4c1b091d4ed621efe971cf0767
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Tue Nov 18 12:14:51 2014 +0100

    4.4 migration: Fix email sending
    
    The changer parameter should be a Bugzilla::User instance, not just
    login string.

 lib/WebService.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/WebService.pm b/lib/WebService.pm
index ef11519..1a67005 100644
--- a/lib/WebService.pm
+++ b/lib/WebService.pm
@@ -125,7 +125,7 @@ sub publish_review {
     $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() });
 
     # Nothing very interesting to return on success, so just return an empty structure
     return {};


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]