more work with saving, publishing and validation for variants, fixes up a few old things too
This commit is contained in:
@@ -232,7 +232,7 @@ namespace Umbraco.Core.Migrations.Install
|
||||
|
||||
private void CreateLanguageData()
|
||||
{
|
||||
_database.Insert(Constants.DatabaseSchema.Tables.Language, "id", false, new LanguageDto { Id = 1, IsoCode = "en-US", CultureName = "en-US" });
|
||||
_database.Insert(Constants.DatabaseSchema.Tables.Language, "id", false, new LanguageDto { Id = 1, IsoCode = "en-US", CultureName = "English (United States)" });
|
||||
}
|
||||
|
||||
private void CreateContentChildTypeData()
|
||||
|
||||
@@ -27,7 +27,11 @@ namespace Umbraco.Core.Persistence.Factories
|
||||
if (xdtos.TryGetValue(propertyType.Id, out var propDtos))
|
||||
{
|
||||
foreach (var propDto in propDtos)
|
||||
{
|
||||
property.Id = propDto.Id;
|
||||
property.FactorySetValue(languageRepository.GetIsoCodeById(propDto.LanguageId), propDto.Segment, propDto.VersionId == publishedVersionId, propDto.Value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
property.ResetDirtyProperties(false);
|
||||
|
||||
Reference in New Issue
Block a user