Do not add contentType to available content type model

This commit is contained in:
Mads Rasmussen
2015-05-29 11:55:37 +02:00
parent 89ca027835
commit acdc81a384

View File

@@ -103,15 +103,13 @@ function DocumentTypeEditController($scope, $rootScope, $routeParams, $log, cont
contentTypeResource.getById(compositeContentType.id).then(function(contentType){
compositeContentType.contentType = contentType;
//merge composition with content type
if( $scope.contentType.compositeContentTypes.indexOf(compositeContentType.alias) !== -1 ) {
var groupsArrayLength = $scope.contentType.groups.length;
var positionToPush = groupsArrayLength - 1;
angular.forEach(compositeContentType.contentType.groups, function(compositionGroup){
angular.forEach(contentType.groups, function(compositionGroup){
// set inherited state on tab
compositionGroup.inherited = true;