Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Commit 8dfab52

Browse files
committed
autocomplete db scope
1 parent 09777c8 commit 8dfab52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Our.Umbraco.DocTypeGridEditor/Extensions/ContentTypeServiceExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ public static string GetAliasByGuid(this IContentTypeService contentTypeService,
1515
string.Concat("Our.Umbraco.DocTypeGridEditor.Web.Extensions.ContentTypeServiceExtensions.GetAliasById_", id),
1616
() =>
1717
{
18-
using (var scope = Current.ScopeProvider.CreateScope())
18+
using (var scope = Current.ScopeProvider.CreateScope(autoComplete:true))
1919
return scope.Database.ExecuteScalar<string>("SELECT [cmsContentType].[alias] FROM [cmsContentType] INNER JOIN [umbracoNode] ON [cmsContentType].[nodeId] = [umbracoNode].[id] WHERE [umbracoNode].[uniqueID] = @0", id);
20+
2021
});
2122
}
2223
}

0 commit comments

Comments
 (0)