CRM-14798 - crmCaseType - Set default values of "Reference" fields
authortotten@civicrm.org <Tim Otten>
Thu, 26 Jun 2014 06:23:36 +0000 (23:23 -0700)
committertotten@civicrm.org <Tim Otten>
Thu, 26 Jun 2014 06:30:27 +0000 (23:30 -0700)
js/angular-crmCaseType.js

index 5670a92dc16f0fb7993d603e85e6bdb979688d5e..d24fe4ea2dede91013bc4b4d3f89be1ff00d8e1f 100644 (file)
     /// Add a new activity entry to an activity-set
     $scope.addActivity = function(activitySet, activityType) {
       activitySet.activityTypes.push({
-        name: activityType
+        name: activityType,
+        status: 'Scheduled',
+        reference_activity: 'Open Case',
+        reference_offset: '1',
+        reference_select: 'newest'
       });
       if (!_.contains($scope.activityTypeNames, activityType)) {
         $scope.activityTypeNames.push(activityType);