From 76be93e789932df107d78ab95d9d9d237282dec8 Mon Sep 17 00:00:00 2001 From: Siddhant Rajagopalan Date: Thu, 3 Jul 2014 21:51:48 +0530 Subject: [PATCH] from email now working. cool_api not needed --- CRM/Mailing/Info.php | 6 +++ js/angular-newMailing.js | 3 ++ partials/crmMailingType/content.html | 75 ++-------------------------- 3 files changed, 14 insertions(+), 70 deletions(-) diff --git a/CRM/Mailing/Info.php b/CRM/Mailing/Info.php index 9ffc634651..0ad2bb5156 100644 --- a/CRM/Mailing/Info.php +++ b/CRM/Mailing/Info.php @@ -67,6 +67,11 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info { $mailStatus = civicrm_api3('MailingJob', 'get', array()); $groupNames = civicrm_api3('Group', 'get', array()); $headerfooterList = civicrm_api3('MailingComponent', 'get', array()); + $emailAdd = civicrm_api3('Email', 'get', array( + 'sequential' => 1, + 'return' => "email", + 'contact_id' => 202, + )); $mesTemplate = civicrm_api3('MessageTemplate', 'get', array( 'sequential' => 1, 'return' => "msg_title", 'id' => array('>' => 58),) @@ -80,6 +85,7 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info { 'groupNames' => array_values($groupNames['values']), 'headerfooterList' => array_values($headerfooterList['values']), 'mesTemplate' => array_values($mesTemplate['values']), + 'emailAdd' => array_values($emailAdd['values']), ), )); return $result; diff --git a/js/angular-newMailing.js b/js/angular-newMailing.js index 2b2969e27b..4b2e83a6d7 100644 --- a/js/angular-newMailing.js +++ b/js/angular-newMailing.js @@ -66,6 +66,7 @@ $scope.mailNameList = _.pluck(CRM.crmCaseType.civiMails, 'name'); $scope.groupNamesList = CRM.crmMailing.groupNames; $scope.headerfooter = CRM.crmMailing.headerfooterList; + $scope.eMailing = CRM.crmMailing.emailAdd; $scope.tmpList = CRM.crmMailing.mesTemplate; $scope.currentMailing = selectedMail; $scope.testGroup = ""; @@ -206,6 +207,8 @@ scheduled_date: $scope.currentMailing.scheduled_date, scheduled_id: $scope.currentMailing.scheduled_id, campaign_id: $scope.currentMailing.campaign_id, + header_id: $scope.currentMailing.header_id, + footer_id: $scope.currentMailing.footer_id, }, true); //var result = crmApi('Mailing', 'create', $scope.currentMailing, true); diff --git a/partials/crmMailingType/content.html b/partials/crmMailingType/content.html index e48a082853..c13f943003 100644 --- a/partials/crmMailingType/content.html +++ b/partials/crmMailingType/content.html @@ -1,9 +1,6 @@
@@ -12,19 +9,17 @@ However this will not be a select option because I could not find the Api to get From E-mail Address - - Reply to E-mail Address - + @@ -71,63 +66,3 @@ However this will not be a select option because I could not find the Api to get
Track and Respond
- - -- 2.25.1