CRM-15578 - crmMailing - Fix checkboxes
authorTim Otten <totten@civicrm.org>
Fri, 30 Jan 2015 08:10:46 +0000 (00:10 -0800)
committerTim Otten <totten@civicrm.org>
Sat, 31 Jan 2015 03:19:32 +0000 (19:19 -0800)
partials/crmMailing/recipients.html
partials/crmMailing/responses.html
partials/crmMailing/tracking.html

index f8f38847151066eaa3a67d596120ecad714b0a70..f2855528377a0cf7ebdc2e47b384f4a1caae1dbc 100644 (file)
@@ -7,8 +7,8 @@
       <input
         type='checkbox'
         ng-model='mailing.dedupe_email'
-        ng-true-value="1"
-        ng-false-value="0"
+        ng-true-value="'1'"
+        ng-false-value="'0'"
         id="recipients-dedupe-email"/>
       <label for="recipients-dedupe-email">
         {{ts('Dedupe')}}
index ca723db9663f08d8423d2d85e04054b9da155738..5bebd5072415999de85535223b4c65d3e7d6a9d0 100644 (file)
@@ -6,19 +6,19 @@ Required vars: mailing, crmMailingConst
   <div class="crm-group">
     <div crm-ui-field crm-title="ts('Track Replies')" crm-layout="checkbox">
       <!-- Comparing data-model and UI of "override_verp", note that true/false are inverted (enabled==0,disabled==1) -->
-      <input name="override_verp" type="checkbox" ng-model="mailing.override_verp" ng-true-value="0" ng-false-value="1" />
+      <input name="override_verp" type="checkbox" ng-model="mailing.override_verp" ng-true-value="'0'" ng-false-value="'1'" />
     </div>
     <div class="crm-section" id="help">
       {{ts('Recipients\' replies are sent to a CiviMail specific address instead of the sender\'s address so they can be stored within CiviCRM.')}}
     </div>
     <div crm-ui-field crm-title="ts('Forward Replies')" crm-layout="checkbox" ng-show="'0' == mailing.override_verp">
-      <input  name="forward_replies" type="checkbox" ng-model="mailing.forward_replies" ng-true-value="1" ng-false-value="0" />
+      <input name="forward_replies" type="checkbox" ng-model="mailing.forward_replies" ng-true-value="'1'" ng-false-value="'0'" />
     </div>
     <div class="crm-section" id="help" ng-show="'0' == mailing.override_verp">
       {{ts('If a recipient replies to this mailing, forward the reply to the FROM Email address specified for the mailing.')}}
     </div>
     <div crm-ui-field crm-title="ts('Auto-Respond to Replies')" crm-layout="checkbox" ng-show="'0' == mailing.override_verp">
-      <input name="auto_responder" type="checkbox" ng-model="mailing.auto_responder" ng-true-value="1" ng-false-value="0" />
+      <input name="auto_responder" type="checkbox" ng-model="mailing.auto_responder" ng-true-value="'1'" ng-false-value="'0'" />
     </div>
     <div class="crm-section" id="help" ng-show="'0' == mailing.override_verp">
       {{ts('If a recipient replies to this mailing, send an automated reply using the selected message.')}}
index 0d7b4de3765536be61ddf4f83f43e568d80b8f10..dd1500ea77a2cddc019e3f0137310c2b700fac28 100644 (file)
@@ -5,13 +5,13 @@ Required vars: mailing
 <div class="crm-block" ng-form="subform" crm-ui-id-scope>
   <div class="crm-group">
     <div crm-ui-field="subform.url_tracking" crm-title="ts('Track Click Throughs')" crm-layout="checkbox">
-      <input crm-ui-id="subform.url_tracking" name="url_tracking" type="checkbox" ng-model="mailing.url_tracking" ng-true-value="1" ng-false-value="0" />
+      <input crm-ui-id="subform.url_tracking" name="url_tracking" type="checkbox" ng-model="mailing.url_tracking" ng-true-value="'1'" ng-false-value="'0'" />
     </div>
     <div class="crm-section" id="help">
       {{ts('Track the number of times recipients click each link in this mailing. NOTE: When this feature is enabled, all links in the message body will be automatically re-written to route through your CiviCRM server prior to redirecting to the target page.')}}
     </div>
     <div crm-ui-field="subform.open_tracking" crm-title="ts('Track Opens')" crm-layout="checkbox">
-      <input crm-ui-id="subform.open_tracking" name="open_tracking" type="checkbox" ng-model="mailing.open_tracking" ng-true-value="1" ng-false-value="0" />
+      <input crm-ui-id="subform.open_tracking" name="open_tracking" type="checkbox" ng-model="mailing.open_tracking" ng-true-value="'1'" ng-false-value="'0'" />
     </div>
     <div class="crm-section" id="help">
       {{ts('Track the number of times recipients open this mailing in their email software.')}}