-
-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev/core#370: No new tasks and documents get added to workflow #12748
dev/core#370: No new tasks and documents get added to workflow #12748
Conversation
Can one of the admins verify this patch? |
(Standard links)
|
@civicrm-builder add to whitelist |
Jenkins re test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ajesamson just a small note
@@ -355,7 +355,8 @@ | |||
} | |||
|
|||
function addActivityToSet(activitySet, activityTypeName) { | |||
var activity = { | |||
activitySet.activityTypes = activitySet.activityTypes || []; | |||
var activity = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest this format
function addActivityToSet(activitySet, activityTypeName) {
var activity;
activitySet.activityTypes = activitySet.activityTypes || [];
activity = { /* ... */ }
}
jenkins, test this please |
This looks like the right fix to me. Verified the bug and confirmed the fix. |
Included in CiviCRM 5.7.0 Core PR: civicrm#12748
Overview
In civi case types, when all built-in tasks and documents are deleted from the Standard Timeline of a workflow, no new tasks and documents get saved to that workflow. This PR fixes the issue, ensuring new task can be added.
Before
After
Technical Details
After deleting all existing tasks,
activityTypes
becomes undefined. To fix the issue, it was ensured the propertyactivityTypes
exists onactivitySet
by initializing it with existing value or empty array.