diff --git a/ang/crmMailingAB.js b/ang/crmMailingAB.js index 49261ff9939b..b175b143f3db 100644 --- a/ang/crmMailingAB.js +++ b/ang/crmMailingAB.js @@ -32,6 +32,9 @@ templateUrl: '~/crmMailingAB/EditCtrl/main.html', controller: 'CrmMailingABEditCtrl', resolve: { + mailingFields: function(crmMetadata) { + return crmMetadata.getFields('Mailing'); + }, abtest: function($route, CrmMailingAB) { var abtest = new CrmMailingAB($route.current.params.id == 'new' ? null : $route.current.params.id); return abtest.load(); diff --git a/ang/crmMailingAB/EditCtrl.js b/ang/crmMailingAB/EditCtrl.js index b189bafcd78f..6e39b72c9e1d 100644 --- a/ang/crmMailingAB/EditCtrl.js +++ b/ang/crmMailingAB/EditCtrl.js @@ -1,6 +1,6 @@ (function(angular, $, _) { - angular.module('crmMailingAB').controller('CrmMailingABEditCtrl', function($scope, abtest, crmMailingABCriteria, crmMailingMgr, crmMailingPreviewMgr, crmStatus, $q, $location, crmBlocker, $interval, $timeout, CrmAutosaveCtrl, dialogService) { + angular.module('crmMailingAB').controller('CrmMailingABEditCtrl', function($scope, abtest, crmMailingABCriteria, crmMailingMgr, crmMailingPreviewMgr, crmStatus, $q, $location, crmBlocker, $interval, $timeout, CrmAutosaveCtrl, dialogService, mailingFields) { $scope.abtest = abtest; var ts = $scope.ts = CRM.ts(null); var block = $scope.block = crmBlocker(); @@ -9,6 +9,7 @@ $scope.crmMailingABCriteria = crmMailingABCriteria; $scope.crmMailingConst = CRM.crmMailing; $scope.checkPerm = CRM.checkPerm; + $scope.mailingFields = mailingFields; $scope.isSubmitted = function isSubmitted() { return _.size(abtest.mailings.a.jobs) > 0 || _.size(abtest.mailings.b.jobs) > 0; diff --git a/ang/crmMailingAB/EditCtrl/edit.html b/ang/crmMailingAB/EditCtrl/edit.html index 825f3a574861..e737bd0a59d4 100644 --- a/ang/crmMailingAB/EditCtrl/edit.html +++ b/ang/crmMailingAB/EditCtrl/edit.html @@ -63,7 +63,7 @@
--> -
+
@@ -101,7 +101,7 @@
-
+
@@ -136,7 +136,7 @@
-
+