});
}
}
+ // TODO The ids below really should use names not labels see
+ // https://lab.civicrm.org/dev/core/issues/774
else {
result.push({
text: relType.label_b_a,
- id: relType.name_a_b
+ id: relType.label_a_b
});
if (!isBidirectionalRelationship) {
result.push({
text: relType.label_a_b,
- id: relType.name_b_a
+ id: relType.label_b_a
});
}
}
activity.default_assignee_contact = null;
};
+ // TODO roleName passed to addRole is a misnomer, its passed as the
+ // label HOWEVER it should be saved to xml as the name see
+ // https://lab.civicrm.org/dev/core/issues/774
+
/// Add a new role
$scope.addRole = function(roles, roleName) {
var names = _.pluck($scope.caseType.definition.caseRoles, 'name');