Merge remote-tracking branch 'origin/v9/dev' into v10/dev
# Conflicts: # src/Umbraco.Infrastructure/HostedServices/ReportSiteTask.cs
This commit is contained in:
@@ -334,13 +334,10 @@ namespace Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement
|
||||
// ensure builtin properties
|
||||
if (contentType is IMemberType memberType)
|
||||
{
|
||||
// ensure that the group exists (ok if it already exists)
|
||||
memberType.AddPropertyGroup(Constants.Conventions.Member.StandardPropertiesGroupAlias,
|
||||
Constants.Conventions.Member.StandardPropertiesGroupName);
|
||||
|
||||
// ensure that property types exist (ok if they already exist)
|
||||
foreach ((var alias, PropertyType propertyType) in builtinProperties)
|
||||
{
|
||||
|
||||
var added = memberType.AddPropertyType(propertyType,
|
||||
Constants.Conventions.Member.StandardPropertiesGroupAlias,
|
||||
Constants.Conventions.Member.StandardPropertiesGroupName);
|
||||
|
||||
@@ -297,15 +297,17 @@ namespace Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement
|
||||
|
||||
private void PersistHistoryCleanup(IContentType entity)
|
||||
{
|
||||
// historyCleanup property is not mandatory for api endpoint, handle the case where it's not present.
|
||||
// DocumentTypeSave doesn't handle this for us like ContentType constructors do.
|
||||
if (entity is IContentTypeWithHistoryCleanup entityWithHistoryCleanup)
|
||||
{
|
||||
ContentVersionCleanupPolicyDto dto = new ContentVersionCleanupPolicyDto()
|
||||
{
|
||||
ContentTypeId = entity.Id,
|
||||
Updated = DateTime.Now,
|
||||
PreventCleanup = entityWithHistoryCleanup.HistoryCleanup.PreventCleanup,
|
||||
KeepAllVersionsNewerThanDays = entityWithHistoryCleanup.HistoryCleanup.KeepAllVersionsNewerThanDays,
|
||||
KeepLatestVersionPerDayForDays = entityWithHistoryCleanup.HistoryCleanup.KeepLatestVersionPerDayForDays
|
||||
PreventCleanup = entityWithHistoryCleanup.HistoryCleanup?.PreventCleanup ?? false,
|
||||
KeepAllVersionsNewerThanDays = entityWithHistoryCleanup.HistoryCleanup?.KeepAllVersionsNewerThanDays,
|
||||
KeepLatestVersionPerDayForDays = entityWithHistoryCleanup.HistoryCleanup?.KeepLatestVersionPerDayForDays
|
||||
};
|
||||
Database.InsertOrUpdate(dto);
|
||||
}
|
||||
|
||||
@@ -775,6 +775,9 @@ namespace Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement
|
||||
{
|
||||
memberDto.PasswordConfig = DefaultPasswordConfigJson;
|
||||
changedCols.Add("passwordConfig");
|
||||
}else if (memberDto.PasswordConfig == Constants.Security.UnknownPasswordConfigJson)
|
||||
{
|
||||
changedCols.Add("passwordConfig");
|
||||
}
|
||||
|
||||
// do NOT update the password if it has not changed or if it is null or empty
|
||||
|
||||
@@ -146,7 +146,6 @@ namespace Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement
|
||||
}
|
||||
|
||||
//By Convention we add 9 standard PropertyTypes to an Umbraco MemberType
|
||||
entity.AddPropertyGroup(Cms.Core.Constants.Conventions.Member.StandardPropertiesGroupAlias, Cms.Core.Constants.Conventions.Member.StandardPropertiesGroupName);
|
||||
var standardPropertyTypes = ConventionsHelper.GetStandardPropertyTypeStubs(_shortStringHelper);
|
||||
foreach (var standardPropertyType in standardPropertyTypes)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user