diff --git a/src/VirtoCommerce.Platform.Data/Settings/LocalizableSettingService.cs b/src/VirtoCommerce.Platform.Data/Settings/LocalizableSettingService.cs index f2350b5821a..492aa3a4956 100644 --- a/src/VirtoCommerce.Platform.Data/Settings/LocalizableSettingService.cs +++ b/src/VirtoCommerce.Platform.Data/Settings/LocalizableSettingService.cs @@ -180,7 +180,11 @@ public virtual async Task SaveAsync(string settingName, IList it if (localizedItem != null) { - localizedItem.Value = value; + if (localizedItem.Value != value) + { + localizedItem.Value = value; + itemsToSave.Add(localizedItem); + } } else { @@ -189,9 +193,9 @@ public virtual async Task SaveAsync(string settingName, IList it localizedItem.Alias = alias; localizedItem.LanguageCode = language; localizedItem.Value = value; - } - itemsToSave.Add(localizedItem); + itemsToSave.Add(localizedItem); + } } }