Skip to content

Commit 11d9b3a

Browse files
authored
Match source block both on culture and alias (#18582)
1 parent 0cead6f commit 11d9b3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Umbraco.Infrastructure/PropertyEditors/BlockValuePropertyValueEditorBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ private void CleanupVariantValues(
358358

359359
foreach (BlockPropertyValue targetBlockPropertyValue in targetBlockItem.Values)
360360
{
361-
BlockPropertyValue? sourceBlockPropertyValue =
362-
sourceBlockItem?.Values.FirstOrDefault(v => v.Culture == targetBlockPropertyValue.Culture);
361+
BlockPropertyValue? sourceBlockPropertyValue = sourceBlockItem?.Values.FirstOrDefault(v
362+
=> v.Alias == targetBlockPropertyValue.Alias && v.Culture == targetBlockPropertyValue.Culture);
363363

364364
// todo double check if this path can have an invariant value, but it shouldn't right???
365365
// => it can be a null culture, but we shouldn't do anything? as the invariant section should have done it already

0 commit comments

Comments
 (0)