Skip to content

Commit

Permalink
dev/core#530 CiviCase: when creating a new reltype assume client is A
Browse files Browse the repository at this point in the history
  • Loading branch information
alifrumin committed Jun 10, 2019
1 parent 197de0f commit 320383d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ang/crmCaseType.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@
CRM.loadForm(CRM.url('civicrm/admin/reltype', {action: 'add', reset: 1, label_a_b: roleName}))
.on('crmFormSuccess', function(e, data) {
var newType = _.values(data.relationshipType)[0];
roles.push({name: newType.label_a_b, displaylabel: newType.label_b_a});
roles.push({name: newType.label_b_a, displaylabel: newType.label_a_b});
// Assume that the case role should be A-B but add both directions as options.
$scope.relationshipTypeOptions.push({id: newType.label_a_b, text: newType.label_a_b});
if (newType.label_a_b != newType.label_b_a) {
Expand Down

0 comments on commit 320383d

Please sign in to comment.