mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Copy ItemVariation.limit_sales_channels when copying items (#4752)
This commit is contained in:
@@ -539,6 +539,8 @@ class ItemCreateForm(I18nModelForm):
|
||||
v.pk = None
|
||||
v.item = instance
|
||||
v.save()
|
||||
if not variation.all_sales_channels:
|
||||
v.limit_sales_channels.set(variation.limit_sales_channels.all())
|
||||
for mv in variation.meta_values.all():
|
||||
mv.pk = None
|
||||
mv.variation = v
|
||||
|
||||
Reference in New Issue
Block a user