Adds AllowSegmentVariation on the Doctype to be peristed

This commit is contained in:
Warren Buckley
2020-04-29 15:29:21 +01:00
parent 01c81023a8
commit 9bce66cb5f
3 changed files with 5 additions and 1 deletions
@@ -349,7 +349,7 @@ namespace Umbraco.Web.Editors
{"loginBackgroundImage", Current.Configs.Settings().Content.LoginBackgroundImage},
{"showUserInvite", EmailSender.CanSendRequiredEmail},
{"canSendRequiredEmail", EmailSender.CanSendRequiredEmail},
{"showAllowSegmentationForDocumentTypes", false},
{"showAllowSegmentationForDocumentTypes", true},
}
},
{
@@ -69,6 +69,9 @@ namespace Umbraco.Web.Models.ContentEditing
[DataMember(Name = "allowCultureVariant")]
public bool AllowCultureVariant { get; set; }
[DataMember(Name = "allowSegmentVariant")]
public bool AllowSegmentVariant { get; set; }
//Tabs
[DataMember(Name = "groups")]
public IEnumerable<PropertyGroupBasic<TPropertyType>> Groups { get; set; }
@@ -403,6 +403,7 @@ namespace Umbraco.Web.Models.Mapping
if (!(target is IMemberType))
{
target.SetVariesBy(ContentVariation.Culture, source.AllowCultureVariant);
target.SetVariesBy(ContentVariation.Segment, source.AllowSegmentVariant);
}
// handle property groups and property types