From 0f25eb9c21a94d7f4e886829565cd9270d01c627 Mon Sep 17 00:00:00 2001 From: Samson Alajede Date: Wed, 29 Aug 2018 16:30:02 +0100 Subject: [PATCH] dev/core#370: No new tasks and documents get added to workflow --- ang/crmCaseType.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ang/crmCaseType.js b/ang/crmCaseType.js index 12500df615..c2cb9859e3 100644 --- a/ang/crmCaseType.js +++ b/ang/crmCaseType.js @@ -355,7 +355,8 @@ } function addActivityToSet(activitySet, activityTypeName) { - var activity = { + activitySet.activityTypes = activitySet.activityTypes || []; + var activity = { name: activityTypeName, label: $scope.activityTypes[activityTypeName].label, status: 'Scheduled', -- 2.25.1