Order change: Fix list of unchangeable add-ons not filtered to category (Z#23223330)

This commit is contained in:
Raphael Michel
2026-02-05 15:26:11 +01:00
parent dc49d5bcf7
commit 1752e2a9db
+4 -1
View File
@@ -1510,7 +1510,10 @@ class OrderChangeMixin:
'max_count': iao.max_count,
'iao': iao,
'items': [i for i in items if not i.require_voucher],
'items_missing': {k: v for k, v in current_addon_products_missing.items() if v},
'items_missing': {
k: v for k, v in current_addon_products_missing.items()
if v and k[0].category_id == iao.addon_category_id
},
})
return positions