Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magento 2 Loading custom option dropdown issue #10291

Closed
NagarajuKasa opened this issue Jul 20, 2017 · 12 comments
Closed

Magento 2 Loading custom option dropdown issue #10291

NagarajuKasa opened this issue Jul 20, 2017 · 12 comments
Assignees
Labels
bug report Component: Catalog Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release

Comments

@NagarajuKasa
Copy link

NagarajuKasa commented Jul 20, 2017

Preconditions

  1. Magento 2.1

Steps to reproduce

  1. Log in to admin
  2. Go to Catalog -> Products and start to create new product
  3. Add Customizable Options with next steps:
    • Select Drop-down Option Type.
    • Click the 'Add value' button to add an empty row, leave it empty.
    • Select a different Option Type (doesn't matter which).
    • Select 'Drop-down' Option Type again.

Expected Result

The option Drop-down is selected and values are possible to edit

Actual Result

The option Drop-down is selected and a infinite loader is presented

Description

Hi,
We are facing the issue with default magento2.17
#issue:
While selecting the OptionType select fields for second time its loadind continuosly.

Please find the steps in the screenshot:
https://prnt.sc/fwkrc5

Thanks

@NagarajuKasa NagarajuKasa changed the title Magento 2 Custom Options Magento 2 Loading custom option dropdown issue Jul 20, 2017
@SanderJP
Copy link

I can reproduce this on a clean 2.1.7 installation with these steps:

  1. Create or edit a Simple product.
  2. Add Custom option.
  3. Select 'Drop-down' Option Type.
  4. Click the 'Add value' button to add an empty row, leave it empty.
  5. Select a different Option Type (doesn't matter which).
  6. Select 'Drop-down' Option Type again.

Result is a infinite loader and no javascript error message.

@RomanKrut
Copy link

@NagarajuKasa Hi, thanks for your feedback. The internal ticket was created MAGETWO-70954 to address this issue.

@veloraven veloraven added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Jul 24, 2017
@NagarajuKasa
Copy link
Author

thanks for reply i hope you will fix in the coming version.... thanks

@NagarajuKasa
Copy link
Author

is there any update on this ticket?

@magento-engcom-team magento-engcom-team added 2.1.x Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report Component: Catalog Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed labels Sep 11, 2017
@magento-engcom-team magento-engcom-team added Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed and removed Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed labels Sep 22, 2017
@magento-engcom-team
Copy link
Contributor

@NagarajuKasa, thank you for your report.
We've created internal ticket(s) MAGETWO-70954 to track progress on the issue.

@magento-engcom-team magento-engcom-team added 2.2.x Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Oct 11, 2017
@briscoda
Copy link

I would like to work on this one, can you assign it to me? #squashtoberfest

@okorshenko
Copy link
Contributor

@briscoda please accept the invite

@briscoda
Copy link

The problem here can be traced back to this file:

https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Ui/view/base/web/js/dynamic-rows/dynamic-rows.js#L610

In cases where there are option values added for the "Select" option types, the javascript will try to keep track of those options if they are not deleted by clicking on the trash can icon.

When the user toggles back to the select option, it then tries to do some logical not operation that seems to fail because the previous options don't seem to get properly deleted from the recordData.

I cannot think of a case in my testing where you would ever want the spinner to show up for these custom options.

The solution might be to either make sure that the "recordData" gets updated correctly so that records don't linger, or to remove the spinner functionality from this altogether. I tried looking back through commit history to see what the reason was for adding in spinner functionality there, but couldn't really tell from looking at it.

One thing that I think will happen if you make the recordData remove those entries, will be that one existing products with custom options, you could potentially lose any custom options that were set.

@okorshenko Who would be the right person to advise on a potential solution?

@magento-team
Copy link
Contributor

Internal ticket to track issue progress: MAGETWO-82943

@okorshenko
Copy link
Contributor

the issue has been fixed and delivered to 2.2-develop branch. WIll be available with 2.2.2 release

@okorshenko okorshenko added the Fixed in 2.2.x The issue has been fixed in 2.2 release line label Oct 31, 2017
@magento-engcom-team
Copy link
Contributor

Hi @NagarajuKasa. Thank you for your report.
The issue has been fixed in magento-engcom/magento2ce#1285 by @magento-engcom-team in 2.3-develop branch
Related commit(s):

The fix will be available with the upcoming patch release.

@magento-engcom-team magento-engcom-team added the Fixed in 2.3.x The issue has been fixed in 2.3 release line label Jan 30, 2018
@NagarajuKasa
Copy link
Author

Thank you so much for updating.
Great job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Catalog Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

No branches or pull requests

8 participants