CRM-14798 - crmCaseType/timelineTable.html - Fix validation of hidden fields
authorTim Otten <totten@civicrm.org>
Tue, 1 Jul 2014 00:25:35 +0000 (17:25 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 1 Jul 2014 00:25:35 +0000 (17:25 -0700)
partials/crmCaseType/timelineTable.html

index 2064f71d4294ad9148fa94be81dda8f2e0269678..460f730576fbcd95288284bf2712b7a90cc76aad 100644 (file)
@@ -37,6 +37,7 @@ Required vars: activitySet
         ng-model="activity.reference_activity"
         ng-options="actTypeName as actTypeName for actTypeName in activityTypeNames"
         ng-hide="activity.name == 'Open Case'"
+        ng-required="activity.name != 'Open Case'"
         >
       </select>
     </td>
@@ -47,7 +48,7 @@ Required vars: activitySet
         ng-pattern="/^[0-9]*$/"
         ng-model="activity.reference_offset"
         ng-hide="activity.name == 'Open Case'"
-        required
+        ng-required="activity.name != 'Open Case'"
         />
     </td>
     <td>
@@ -57,6 +58,7 @@ Required vars: activitySet
         ng-model="activity.reference_select"
         ng-options="key as value for (key,value) in {newest: 'Newest', oldest: 'Oldest'}"
         ng-hide="activity.name == 'Open Case'"
+        ng-required="activity.name != 'Open Case'"
         >
       </select>
     </td>