CRM-15578 - Filter message templates on is_active=>1
authorTim Otten <totten@civicrm.org>
Tue, 24 Feb 2015 18:47:59 +0000 (10:47 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 24 Feb 2015 18:47:59 +0000 (10:47 -0800)
CRM/Mailing/Info.php

index 69b6908d250b81da0429f2e25c011c438133249d..db1ffa30207e7fc252a21bb107980da8b7168a53 100644 (file)
@@ -109,6 +109,7 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info {
       $mesTemplate = civicrm_api3('MessageTemplate', 'get', array(
         'sequential' => 1,
         'return' => array("msg_html", "id", "msg_title", "msg_subject"),
+        'is_active' => 1,
         'id' => array('>' => 58),
       ));
     }
@@ -122,6 +123,7 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info {
       $mesTemplate = civicrm_api3('MessageTemplate', 'get', array(
         'sequential' => 1,
         'return' => array("msg_html", "id", "msg_title", "msg_subject", "msg_text"),
+        'is_active' => 1,
         'workflow_id' => array('IS NULL' => ""),
       ));
     }