Skip to content
This repository was archived by the owner on Dec 13, 2021. It is now read-only.

Commit 44129a6

Browse files
committed
Attempt to fix issue #238
When the `AttributedTypeResolver` is created, the `inherit` param wasn't being passed through.
1 parent a6822bf commit 44129a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Our.Umbraco.Ditto/Ditto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public static bool TryGetTypeAttribute<TAttribute>(Type objectType, out TAttribu
204204
{
205205
if (AttributedTypeResolver<TAttribute>.HasCurrent == false)
206206
{
207-
AttributedTypeResolver<TAttribute>.Current = AttributedTypeResolver<TAttribute>.Create(new[] { objectType });
207+
AttributedTypeResolver<TAttribute>.Current = AttributedTypeResolver<TAttribute>.Create(new[] { objectType }, inherit);
208208
}
209209

210210
return AttributedTypeResolver<TAttribute>.Current.TryGetTypeAttribute(objectType, out attribute, inherit);

0 commit comments

Comments
 (0)