Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix bug with Index out of range in ProductTranslatableContent (#7781)

Dawid Matuszczyke1cad7f9d1f4
diff --git a/saleor/graphql/translations/types.py b/saleor/graphql/translations/types.py
index 977a3cffca..e99e1a8a1d 100644
--- a/saleor/graphql/translations/types.py
+++ b/saleor/graphql/translations/types.py
@@ -46,8 +46,7 @@ def get_translatable_attribute_values(attributes: list) -> List[AttributeValue]:
for assignment in attributes:
attr = assignment["attribute"]
if attr.input_type in AttributeInputType.TRANSLATABLE_ATTRIBUTES:
- value = assignment["values"][0]
- translatable_values.append(value)
+ translatable_values.extend(assignment["values"])
return translatable_values