Fixed a bug in editProduct() where the $pos variable was overwritten too early. If there is no matching product in the basket (don't know when this should occur, but it does together with the bug above), the edited item would get stored at position 0 (resulting from return false). This results in duplicated or overwritten basket items.
Coverage increased (+0.006%) to 91.193% when pulling dd03ea5bc05e333067cd65cf8ed2fe964abec548 on nvindice:2018.10 into 36702575f33c93c934a05db87123089fffa53702 on aimeos:2018.10.
Fixed a bug in
editProduct()
where the$pos
variable was overwritten too early. If there is no matching product in the basket (don't know when this should occur, but it does together with the bug above), the edited item would get stored at position 0 (resulting fromreturn false
). This results in duplicated or overwritten basket items.