CRM-16186 - Fix checkbox values
authorColeman Watts <coleman@civicrm.org>
Thu, 26 Mar 2015 14:16:39 +0000 (10:16 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 26 Mar 2015 14:16:39 +0000 (10:16 -0400)
partials/crmCaseType/caseTypeDetails.html
partials/crmCaseType/rolesTable.html

index fb644f1a946878824d8d62c6bdc45623cc88bc6a..9b121d0f4dd73d89a7936bc023a89b6159c32e06 100644 (file)
@@ -39,7 +39,7 @@ The original form used table layout; don't know if we have an alternative, CSS-b
       <textarea crm-ui-id="caseTypeDetailForm.description" name="description" ng-model="caseType.description" class="big crm-form-textarea"></textarea>
     </div>
     <div crm-ui-field="{title: ts('Enabled?')}">
-      <input name="is_active" type="checkbox" ng-model="caseType.is_active" ng-true-value="1" ng-false-value="0"/>
+      <input name="is_active" type="checkbox" ng-model="caseType.is_active" ng-true-value="'1'" ng-false-value="'0'"/>
     </div>
   </div>
 </div>
index 93a7a963ef0dc892055c4e11849d8f2efa5e19c0..a0ffdda3fa85ab28b2909679ba6119d4d5522826 100644 (file)
@@ -14,7 +14,7 @@ Required vars: caseType
   <tbody>
          <tr ng-repeat="relType in caseType.definition.caseRoles | orderBy:'name'" ng-class-even="'crm-entity even-row even'" ng-class-odd="'crm-entity odd-row odd'">
            <td>{{relType.name}}</td>
-           <td><input type="checkbox" ng-model="relType.creator" ng-true-value="1" ng-false-value="0"/></td>
+           <td><input type="checkbox" ng-model="relType.creator" ng-true-value="'1'" ng-false-value="'0'"/></td>
            <td><input type="radio" ng-model="relType.manager" value="1" ng-change="onManagerChange(relType)"/></td>
            <td>
              <a crm-icon="trash" class="crm-hover-button" ng-click="removeItem(caseType.definition.caseRoles,relType)" title="{{ts('Remove')}}"></a>