Skip to content
Snippets Groups Projects
Commit f34c1034 authored by alicefrumin's avatar alicefrumin Committed by Alice Frumin
Browse files

#530 CiviCase: when creating a new reltype assume client is A

parent cd2c9605
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment