SOURCES: eventum-email-notify-display.patch - make the notify list...

glen glen at pld-linux.org
Thu Sep 21 20:12:57 CEST 2006


Author: glen                         Date: Thu Sep 21 18:12:57 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- make the notify list unique

---- Files affected:
SOURCES:
   eventum-email-notify-display.patch (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SOURCES/eventum-email-notify-display.patch
diff -u SOURCES/eventum-email-notify-display.patch:1.5 SOURCES/eventum-email-notify-display.patch:1.6
--- SOURCES/eventum-email-notify-display.patch:1.5	Thu Sep 21 20:08:21 2006
+++ SOURCES/eventum-email-notify-display.patch	Thu Sep 21 20:12:51 2006
@@ -1,6 +1,6 @@
 --- eventum-20060830/include/class.notification.php	2006-08-30 20:17:25.074832296 +0300
 +++ eventum/include/class.notification.php	2006-09-21 20:59:32.125474606 +0300
-@@ -853,6 +853,30 @@
+@@ -853,6 +853,31 @@
          }
      }
  
@@ -21,17 +21,18 @@
 +
 +        if (is_null($issue_id)) {
 +            // return all addresses in flat view
-+            return array_values($_EVENTUM_LAST_NOTIFIED_LIST);
++            $ret = array_values($_EVENTUM_LAST_NOTIFIED_LIST);
++        } else {
++            // return address list for specific issue_id only.
++            $ret = $_EVENTUM_LAST_NOTIFIED_LIST[$issue_id];
 +        }
-+
-+        // return address list for specific issue_id only.
-+        return $_EVENTUM_LAST_NOTIFIED_LIST[$issue_id];
++        return array_unique($ret);
 +    }
 +
  
      /**
       * Method used to format and send the email notifications.
-@@ -869,6 +893,8 @@
+@@ -869,6 +894,8 @@
       */
      function notifySubscribers($issue_id, $emails, $type, $data, $subject, $internal_only, $type_id = false, $headers = false)
      {
@@ -40,7 +41,7 @@
          // open text template
          $tpl = new Template_API;
          $tpl->setTemplate('notifications/' . $type . '.tpl.text');
-@@ -954,6 +980,8 @@
+@@ -954,6 +981,8 @@
                  $full_subject = "[#$issue_id] $subject: $extra_subject";
              }
              $mail->send($from, $emails[$i], $full_subject, TRUE, $issue_id, $final_type, $sender_usr_id, $type_id);
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/eventum-email-notify-display.patch?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list