}];
reqs.relTypes = ['RelationshipType', 'get', {
sequential: 1,
+ is_active: 1,
options: {
sort: CRM.crmCaseType.REL_TYPE_CNAME,
limit: 0
_.each($scope.caseType.definition.activitySets, function (set) {
_.each(set.activityTypes, function (type, name) {
var isDefaultAssigneeTypeUndefined = _.isUndefined(type.default_assignee_type);
- type.label = $scope.activityTypes[type.name].label;
+ var typeDefinition = $scope.activityTypes[type.name];
+ type.label = (typeDefinition && typeDefinition.label) || type.name;
if (isDefaultAssigneeTypeUndefined) {
type.default_assignee_type = defaultAssigneeDefaultValue.value;