-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Case type management fixes #12647
Case type management fixes #12647
Conversation
(Standard links)
|
Hmm, a simpler fix would be to add |
@colemanw, the civicrm-core/ang/crmCaseType.js Lines 264 to 266 in 71fc882
And I'm not sure if the relationshipTypeOptions needs all relationship types.
Do you think it's safe to use |
I think that would be safe, as it's more user-facing options; hiding disabled types should be a plus. |
@reneolivo is this pending an update from you now? |
* When selecting default assignees by relationships, it will only display active relationship types. * It also handles activity types that have been deleted. Without taking this into consideration, the screen would break if it encounters a missing activity type.
71fc882
to
1e921db
Compare
@eileenmcnaughton @colemanw I updated the PR with the suggested change. Sorry for the delay, I don't normally get mentions notifications but will active them for civicrm. |
test this please |
1 similar comment
test this please |
@colemanw looks like you have reviewed this - is it good to merge? Also - when are we going to Stop fixing the old civicase code & use the new extension instead? |
Yep. Good to merge. |
Overview
This PR fixes the following issues with case type management:
Active relationship types
To reproduce the issue:
The relationship type is shown, but it should not.
Before
After
Technical details
The issue is present because when constructing the list of relationship types for default assignees, the list does not take into consideration the
is_active
field. To fix this, the request that brings relationship types was amended:Deleted activity types
How to reproduce the issue:
A broken AngularJS screen is shown and it should not.
Before
After
Technical details
The issue happens because the list of all activity types is stored in a
$scope.activityTypes
indexed by activity name, but when one of the activities defined in a timeline references a deleted activity type, it breaks:The fix checks if the activity type exists, if not, it will use the type name as label as a fall back.
Comments
Tests could not be added because running
karma start
yields the following error:I'm guessing this is an issue with the
civicrm-cv
package.