[CS-Project-svn_notify] SF.net SVN: cs-project:[907] trunk/1.2/lib/helpdeskClass.php
Brought to you by:
crazedsanity
From: <cra...@us...> - 2008-08-26 03:30:59
|
Revision: 907 http://cs-project.svn.sourceforge.net/cs-project/?rev=907&view=rev Author: crazedsanity Date: 2008-08-26 03:30:56 +0000 (Tue, 26 Aug 2008) Log Message: ----------- Add users associated with parent project to notify list when creating issues. Modified Paths: -------------- trunk/1.2/lib/helpdeskClass.php Modified: trunk/1.2/lib/helpdeskClass.php =================================================================== --- trunk/1.2/lib/helpdeskClass.php 2008-08-26 03:28:35 UTC (rev 906) +++ trunk/1.2/lib/helpdeskClass.php 2008-08-26 03:30:56 UTC (rev 907) @@ -347,6 +347,19 @@ $normalEmailExtra = NULL; $emailAddressList = $linkObj->get_record_email_list($newRecord); + ## If there's an associated project, get the records for that, too... + if(is_numeric($dataArr['parentRecordId'])) { + $list = $this->get_record_contact_associations($dataArr['parentRecordId']); + + if(is_array($list)) { + foreach($list as $myContactId=>$data) { + if(!isset($emailAddressList[$myContactId])) { + $emailAddressList[$myContactId] = $data['email']; + } + } + } + } + if((strlen($_SESSION['login_email'])) && ($_SESSION['login_email'] != $parseArr['email'])) { $subject = "Helpdesk Issue #$retval [for ".$parseArr['email'] ."] -- ". $parseArr['name']; send_email($emailAddressList, $subject, $emailTemplate, $parseArr); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |