do not copy template description to variant if not in allow fields (#13726)
This commit is contained in:
parent
9738d52d5f
commit
38de994788
@ -272,6 +272,7 @@ def copy_attributes_to_variant(item, variant):
|
||||
else:
|
||||
variant.set(field.fieldname, item.get(field.fieldname))
|
||||
|
||||
if 'description' in allow_fields:
|
||||
variant.variant_of = item.name
|
||||
variant.has_variants = 0
|
||||
if not variant.description:
|
||||
|
Loading…
x
Reference in New Issue
Block a user