Permalink
Browse files

fixed criteria for recipients.

  • Loading branch information...
yandod committed May 31, 2011
1 parent bb697ee commit f0588de8441702c988962becae21b98cccbdf58b
Showing with 5 additions and 0 deletions.
  1. +2 −0 app/models/issue.php
  2. +3 −0 app/models/project.php
View
@@ -516,6 +516,8 @@ function is_overdue($data = false) {
#
// Returns the mail adresses of users that should be notified for the issue
function recipients() {
$data = $this->read('project_id',$this->id);
$this->Project->id = $data['Issue']['project_id'];
$recipients = $this->Project->recipients();
# Author and assignee are always notified unless they have been locked
$data = $this->findById($this->id);
View
@@ -461,10 +461,13 @@ function recipients(){
array(
'fields' => array('User.mail'),
'conditions' => array(
'AND' => array(
'Member.project_id' => $this->id,
'OR' => array(
'User.mail_notification' => 1,
'Member.mail_notification' => 1
)
)
),
'recursive' => 2
)

0 comments on commit f0588de

Please sign in to comment.