Fixes tests, adds LanguageId to the interface

This commit is contained in:
Shannon
2016-01-07 18:59:59 +01:00
parent d7a142e724
commit fb5faa3db7
7 changed files with 17 additions and 9 deletions

View File

@@ -42,7 +42,7 @@ namespace Umbraco.Core.Persistence.Factories
{
var text = new LanguageTextDto
{
LanguageId = translation.Language.Id,
LanguageId = translation.LanguageId,
UniqueId = translation.Key,
Value = translation.Value
};

View File

@@ -30,7 +30,7 @@ namespace Umbraco.Core.Persistence.Factories
{
var text = new LanguageTextDto
{
LanguageId = entity.Language.Id,
LanguageId = entity.LanguageId,
UniqueId = _uniqueId,
Value = entity.Value
};

View File

@@ -223,7 +223,10 @@ namespace Umbraco.Core.Persistence.Repositories
var list = new List<IDictionaryTranslation>();
foreach (var textDto in dto.LanguageTextDtos)
{
{
if (textDto.LanguageId <= 0)
continue;
var translationFactory = new DictionaryTranslationFactory(dto.UniqueId);
list.Add(translationFactory.BuildEntity(textDto));
}