Makes State a ContentSavedState enum nullable - otherwise media items was getting a default enum of not created
This commit is contained in:
@@ -92,14 +92,15 @@ namespace Umbraco.Web.Models.Mapping
|
||||
}
|
||||
}
|
||||
|
||||
internal class CultureStateResolver : IValueResolver<IContent, ContentItemBasic<ContentPropertyBasic>, ContentSavedState>
|
||||
internal class CultureStateResolver : IValueResolver<IContent, ContentItemBasic<ContentPropertyBasic>, ContentSavedState?>
|
||||
{
|
||||
//WB: Note this is same logic as ContentSavedStateResolver.cs
|
||||
//But this is for ContentItemBasic instead of ContentVariantDisplay
|
||||
public ContentSavedState Resolve(IContent source, ContentItemBasic<ContentPropertyBasic> destination, ContentSavedState destMember, ResolutionContext context)
|
||||
public ContentSavedState? Resolve(IContent source, ContentItemBasic<ContentPropertyBasic> destination, ContentSavedState? destMember, ResolutionContext context)
|
||||
{
|
||||
PublishedState publishedState;
|
||||
bool isEdited;
|
||||
|
||||
|
||||
if (source.ContentType.VariesByCulture())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user