X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=ang%2FcrmMailing%2FBlockPreview.js;h=334e15d4408d2b5e2170bbce95f3b6361dec3303;hb=372d897eed3f8d5736b7dcb710d0c604e7a0328c;hp=c2b692462e53dc8388eca0cac11e66ce74833e20;hpb=0c5302177abdd62e8001e00a493d19dcdabdd2d5;p=civicrm-core.git diff --git a/ang/crmMailing/BlockPreview.js b/ang/crmMailing/BlockPreview.js index c2b692462e..334e15d440 100644 --- a/ang/crmMailing/BlockPreview.js +++ b/ang/crmMailing/BlockPreview.js @@ -21,6 +21,7 @@ }); }; scope.doSend = function doSend(recipient) { + recipient = JSON.parse(JSON.stringify(recipient).replace(/\,\s/g, ',')); scope.$eval(attr.onSend, { preview: {recipient: recipient} }); @@ -47,7 +48,7 @@ markup += ''; markup = '

' + ts('A test message will be sent to %1 people:', {1: count}) + '

' + markup; if (!count) { - markup = '
' + + markup = '
' + (data.contact.count ? ts('None of the contacts in this group have an email address.') : ts('Group is empty.')) + '
'; }