Skip to content

Fix checking condition in OrderItem constructor

Administrator requested to merge fix/order-item-constructor into master

When checking if an attribute exists, when that same attribute is defined as empty, we cannot check it like

if self.attribute:

because if it exists as an empty string, this will return False anyway.

Edited by Administrator

Merge request reports

Loading