# HG changeset patch # User Marcin Kuzminski # Date 1346801953 -7200 # Node ID 2454ed7f0c21353624643e07ddcb214bace2b91f # Parent 8b00595c4f9363cccb02ceadb99e3b126256dfde fix missing email_kwargs diff -r 8b00595c4f93 -r 2454ed7f0c21 rhodecode/model/comment.py --- a/rhodecode/model/comment.py Wed Sep 05 00:56:37 2012 +0200 +++ b/rhodecode/model/comment.py Wed Sep 05 01:39:13 2012 +0200 @@ -123,6 +123,9 @@ recipients = ChangesetComment.get_users(revision=revision) # add changeset author if it's in rhodecode system recipients += [User.get_by_email(author_email)] + email_kwargs = { + 'status_change': status_change, + } #pull request elif pull_request: _url = h.url('pullrequest_show', @@ -147,7 +150,7 @@ recipients += [x.user for x in pull_request.reviewers] #set some variables for email notification - kwargs = { + email_kwargs = { 'pr_id': pull_request.pull_request_id, 'status_change': status_change, 'pr_comment_url': _url, @@ -160,7 +163,7 @@ NotificationModel().create( created_by=user, subject=subj, body=body, recipients=recipients, type_=notification_type, - email_kwargs=kwargs + email_kwargs=email_kwargs ) mention_recipients = set(self._extract_mentions(body))\