Merge branch 'dev-v7.7' of https://github.com/umbraco/Umbraco-CMS into dev-v7.7
This commit is contained in:
@@ -1161,8 +1161,9 @@ namespace Umbraco.Core.Services
|
||||
using (var uow = UowProvider.GetUnitOfWork(readOnly: true))
|
||||
{
|
||||
var repository = RepositoryFactory.CreateContentBlueprintRepository(uow);
|
||||
var blueprint = repository.Get(id);
|
||||
((Content) blueprint).IsBlueprint = true;
|
||||
var blueprint = repository.Get(id);
|
||||
if (blueprint != null)
|
||||
((Content) blueprint).IsBlueprint = true;
|
||||
return blueprint;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user