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

This commit is contained in:
Raphael Michel
2026-02-16 15:13:24 +01:00
committed by GitHub
parent f24429a7c5
commit 61f9cf13b4

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