All pastes #492942 Raw Edit

Something

public text v1 · immutable
·published 2007-05-17 14:44 UTC
rendered paste body
Index: include/class.workflow.php
===================================================================
--- include/class.workflow.php  (revision 3328)
+++ include/class.workflow.php  (working copy)
@@ -419,7 +419,7 @@
      * @param   string $address The email address to check
      * @return  boolean
      */
-   function shouldEmailAddress($prj_id, $address)
+   function shouldEmailAddress($prj_id, $address, $issue_id = false, $type = false)
    {
         if (!Workflow::hasWorkflowIntegration($prj_id)) {
             return true;



Index: include/class.notification.php
===================================================================
--- include/class.notification.php      (revision 3328)
+++ include/class.notification.php      (working copy)
@@ -1138,7 +1138,7 @@
             }
             $recipient_usr_id = User::getUserIDByEmail(Mail_API::getEmailAddress($recipient));

-            if (!Workflow::shouldEmailAddress($prj_id, Mail_API::getEmailAddress($recipient))) {
+            if (!Workflow::shouldEmailAddress($prj_id, Mail_API::getEmailAddress($recipient), $issue_id, 'auto_created')) {
                 return;
             }
             $data = Issue::getDetails($issue_id);