From 548a427148480d3ec3b37d81dd5ad1ab4fc0e619 Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Mon, 1 Mar 2010 15:02:09 +0100 Subject: [PATCH] Fixed issue 407, notifications emails are sent twice. --- src/IDF/Issue.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/IDF/Issue.php b/src/IDF/Issue.php index 08e4716..221f576 100644 --- a/src/IDF/Issue.php +++ b/src/IDF/Issue.php @@ -249,8 +249,11 @@ class IDF_Issue extends Pluf_Model if ($create) { if (null != $this->get_owner() and $this->owner != $this->submitter) { - $to_email[] = array($this->get_owner()->email, + $email_lang = array($this->get_owner()->email, $this->get_owner()->language); + if (!in_array($email_lang, $to_email)) { + $to_email[] = $email_lang; + } } $comments = $this->get_comments_list(array('order' => 'id ASC')); $context = new Pluf_Template_Context(