CRM-16973 - filter FROM Email Address select by domain_id
authorDave Greenberg <dave@civicrm.org>
Wed, 5 Aug 2015 22:56:36 +0000 (15:56 -0700)
committerDave Greenberg <dave@civicrm.org>
Wed, 5 Aug 2015 22:56:36 +0000 (15:56 -0700)
----------------------------------------
* CRM-16973: CiviMail not respecting multisite ACL
  https://issues.civicrm.org/jira/browse/CRM-16973

CRM/Mailing/Info.php

index 1905d16ed0dc47b8fc8cee0b4d5fa547d8c5740d..51fb5e6b377e8a2ffc98d56afaeea30cb3165922 100644 (file)
@@ -143,6 +143,7 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info {
     ));
     $fromAddress = civicrm_api3('OptionValue', 'get', $params + array(
       'option_group_id' => "from_email_address",
+      'domain_id' => CRM_Core_Config::domainID(),
     ));
     CRM_Core_Resources::singleton()
       ->addSetting(array(