Merge pull request #4782 from kjac/v8-fix-create-content-template

V8: Fix "ambient scope" error when creating content template from content
This commit is contained in:
Stephan
2019-03-04 10:40:40 +01:00
committed by GitHub

View File

@@ -2862,7 +2862,7 @@ namespace Umbraco.Core.Services.Implement
{
if (blueprint == null) throw new ArgumentNullException(nameof(blueprint));
var contentType = _contentTypeRepository.Get(blueprint.ContentType.Id);
var contentType = GetContentType(blueprint.ContentType.Alias);
var content = new Content(name, -1, contentType);
content.Path = string.Concat(content.ParentId.ToString(), ",", content.Id);