Skip to content

Commit

Permalink
Added propertyAlias check in case we are inside a nested content
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrailsford committed Oct 31, 2016
1 parent 3f61725 commit e418954
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Our.Umbraco.Vorto/Web/UI/App_Plugins/Vorto/js/vorto.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,11 @@
// Get the view path
$scope.property.viewPath = umbPropEditorHelper.getViewPath(dataType.view);

// Get the property alias
var propAlias = $scope.model.propertyAlias || $scope.model.alias;

// Get the current properties datatype
vortoResources.getDataTypeByAlias(currentSection, nodeContext.contentTypeAlias, $scope.model.alias).then(function (dataType2) {
vortoResources.getDataTypeByAlias(currentSection, nodeContext.contentTypeAlias, propAlias).then(function (dataType2) {

$scope.model.value.dtdGuid = dataType2.guid;

Expand Down

0 comments on commit e418954

Please sign in to comment.