Skip to content
This repository was archived by the owner on Apr 28, 2022. It is now read-only.

Commit 08bdff1

Browse files
Richard deMeesterPCatinean
authored andcommitted
[FIX] Custom value not replacing original.
1 parent 5d1cbc5 commit 08bdff1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

product_configurator_wizard/wizard/product_configurator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ def write(self, vals):
654654
attr_id: field_val
655655
})
656656
# Ensure there is no custom value stored if we have switched
657-
# from custom value to selected attribute value.
657+
# from custom value to selected attribute value.
658658
if attr_line.custom:
659659
custom_val_dict.update({attr_id: False})
660660
elif attr_line.custom:
@@ -668,6 +668,9 @@ def write(self, vals):
668668
custom_val_dict.update({
669669
attr_id: val
670670
})
671+
# Ensure there is no standard value stored if we have switched
672+
# from selected value to custom value.
673+
attr_val_dict.update({attr_id: False})
671674

672675
# Remove dynamic field from value list to prevent error
673676
if field_name in vals:

0 commit comments

Comments
 (0)