From 1e2725cbd786066ef7610386a4d70988c646647b Mon Sep 17 00:00:00 2001
From: Ruben Rodriguez <ruben@fsf.org>
Date: Wed, 15 Nov 2017 12:28:43 -0500
Subject: [PATCH] Disable recipient estimation on mailings

---
 ang/crmMailing/EditRecipCtrl.js | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/ang/crmMailing/EditRecipCtrl.js b/ang/crmMailing/EditRecipCtrl.js
index 9fca637a73..d9ba57bb88 100644
--- a/ang/crmMailing/EditRecipCtrl.js
+++ b/ang/crmMailing/EditRecipCtrl.js
@@ -23,6 +23,11 @@
     $scope.permitRecipientRebuild = null;
 
     $scope.getRecipientsEstimate = function() {
+
+      // quidam Tue Nov 14 17:29:27 EST 2017
+      // we don't want to estimate the recipient size
+      return;
+
       var ts = $scope.ts;
       if ($scope.recipients === null) {
         return ts('Estimating...');
@@ -52,6 +57,11 @@
     // We monitor four fields -- use debounce so that changes across the
     // four fields can settle-down before AJAX.
     var refreshRecipients = _.debounce(function() {
+
+      // quidam Tue Nov 14 17:29:27 EST 2017
+      // we don't want to estimate the recipient size
+      return;
+
       $scope.$apply(function() {
         if (!$scope.mailing) {
           return;
@@ -81,6 +91,11 @@
     $scope.$watchCollection("permitRecipientRebuild", refreshSetting);
 
     $scope.previewRecipients = function previewRecipients() {
+
+      // quidam Tue Nov 14 17:29:27 EST 2017
+      // we don't want to estimate the recipient size
+      return;
+
       var model = {
         count: $scope.recipients,
         sample: crmMailingCache.get('mailing-' + $scope.mailing.id + '-recipient-list'),
-- 
2.25.1