CRM-16063 - CiviMail - Get full list of active mailin components.
authorTim Otten <totten@civicrm.org>
Fri, 6 Mar 2015 03:55:50 +0000 (19:55 -0800)
committerTim Otten <totten@civicrm.org>
Fri, 6 Mar 2015 03:55:50 +0000 (19:55 -0800)
CRM/Mailing/Info.php

index 2f56018e10164736f0a92bd620c93ae0f6ef6115..ae39a6e23082c6a936d223e79fd03ab45d6c5526 100644 (file)
@@ -100,7 +100,12 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info {
     $mailingabNames = civicrm_api3('MailingAB', 'get', array());
     $mailStatus = civicrm_api3('MailingJob', 'get', array());
     $groupNames = civicrm_api3('Group', 'get', array());
-    $headerfooterList = civicrm_api3('MailingComponent', 'get', array());
+    $headerfooterList = civicrm_api3('MailingComponent', 'get', array(
+      'is_active' => 1,
+      'options' => array(
+        'limit' => 0,
+      ),
+    ));
 
     $emailAdd = civicrm_api3('Email', 'get', array(
       'sequential' => 1,