django-oscar-api icon indicating copy to clipboard operation
django-oscar-api copied to clipboard

Weird results in attributes with patching Childs

Open viggo-devries opened this issue 2 years ago • 1 comments

Parent product has only attribute A filled Child product has only attribute B filled

When patching the child product (does not matter what you change) The attribute value from A will also be saved on the child product.

parent: image

child before patching: image

child after patching and only changing the title: image

viggo-devries avatar Oct 05 '22 12:10 viggo-devries

@viggo-devries Any chance you could add a test which “proves” the wrong behaviour?

maerteijn avatar Oct 06 '22 09:10 maerteijn

This was proven in #299

specialunderwear avatar Jun 22 '23 11:06 specialunderwear

The issue was fixed in oscar, as shown by these tests passing

specialunderwear avatar Jun 22 '23 11:06 specialunderwear