Bagisto: Errors when delete option of attribute "color"

Created on 29 Sep 2020  路  4Comments  路  Source: bagisto/bagisto

Bug report

Title

Errors when delete option of attribute "color" with Swatch Type as Color swatch

Issue Description

When edit attribute color, we selected Swatch Type is Color swatch, then we deleted a option and the returned result is mixed

Preconditions

Please provide as detailed information about your environment as possible.

1. version:  1.2

Steps to reproduce

1. step-1: select swatch Type is color swatch 
2. step-2 : add color for options
3. step-3: delete a option

First, I have attribute color with options

image

Final, I deleted option "white".

Expected result

Tell us what should happen.

Screenshot from 2020-09-29 11-33-35

Actual result

image

Bug Bug Fixed HACKTOBERFEST

Most helpful comment

@devansh-webkul , errors which he has mentioned does not mean any exception is there, simply when admin is deleting any option the values are getting deleted but the selected swatch color doesn't get deleted. As you can see in steps to reproduces, there is one white color swatch and one blue so when admin delete white one,then options of blue get shifted to white color swatch.
I hope you got the point

All 4 comments

@bhanu-webkul I am not able to reproduce that. Can you show us the steps to reproduce how he reproduce that bug?

Because currently, we are not doing the realtime saving. As I am seeing the screenshot he saved the name two times blue in color white as well. That's why he is getting a mixed results.

@bhanu-webkul OK I got it. Its a bug.

@devansh-webkul , errors which he has mentioned does not mean any exception is there, simply when admin is deleting any option the values are getting deleted but the selected swatch color doesn't get deleted. As you can see in steps to reproduces, there is one white color swatch and one blue so when admin delete white one,then options of blue get shifted to white color swatch.
I hope you got the point

@nguyenthanhtuanIT
this bug is fixed now, please check.

Feel free to reopen the issue anytime.

Was this page helpful?
0 / 5 - 0 ratings