Describe your bug or feature request.
when multiple variations of product have duplicates weight then one product variations is deleted.

steps to reproduce
1.Create multiple variations of same product in commerce module.
2.Give duplicates weight to two product.
3.Click submit button.
4.One product variations is deleted after click submit button

CommentFileSizeAuthor
#2 3325807-2.patch1.22 KBjsacksick
Screenshot.png58.45 KBkishan@kk

Comments

kishan@lnwebworks created an issue. See original summary.

jsacksick’s picture

Status: Active » Needs review
StatusFileSize
new1.22 KB

The attached patch fixes the issue for me.

  • jsacksick committed 628b968 on 8.x-2.x
    Issue #3325807 by kishan@lnwebworks, jsacksick: Ensure the variation...

  • jsacksick committed f0a594c on 3.0.x
    Issue #3325807 by kishan@lnwebworks, jsacksick: Ensure the variation...
jsacksick’s picture

Title: When two product varations have the same weight, a weight is deleted on submit button » Ensure the variation reference is not lost when reordering variations with the same weight in the admin.
Status: Needs review » Fixed

Committed, thanks for the bug report!

kishan@kk’s picture

Thanks for the solutions @jsacksick
your patch is working

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.