From 1cb3f5e80becf0a1f23dca0f76bb5e761ca4197a Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 24 Feb 2015 10:47:59 -0800 Subject: [PATCH] CRM-15578 - Filter message templates on is_active=>1 --- CRM/Mailing/Info.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Mailing/Info.php b/CRM/Mailing/Info.php index 69b6908d25..db1ffa3020 100644 --- a/CRM/Mailing/Info.php +++ b/CRM/Mailing/Info.php @@ -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' => ""), )); } -- 2.25.1