Can't add customizable options to product #11792
Labels
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
Preconditions
Steps to reproduce
Expected result
Actual result
The full stack trace for the console error is:
Uncaught TypeError: Cannot read property 'apply' of undefined
at registry.js:54
at Registry._resolveRequest (registry.js:413)
at Registry._addRequest (registry.js:380)
at Registry.get (registry.js:224)
at async (registry.js:53)
at UiClass.applyAction (button.js:72)
at Array.forEach ()
at UiClass.action (button.js:50)
at HTMLButtonElement. (knockout.js:3863)
at HTMLButtonElement.dispatch (jquery.js:5226)
I traced it out and what is happening is there are two UIClass objects on the page with the same 'ns'=>'product_form' and 'index'=>'options' properties. This is occurring because the 'Options' attribute group we just created was given the attribute group code 'options' and that attribute group code appears to be the value that's used for the 'index' key in the resulting UIClass object. If we go back and delete the 'Options' group out of the attribute set, the button goes back to working like it should. I also tested out just renaming the group; however, it appears that the attribute group code is only set when the group is created. So changing the name later won't update the attribute group code.
The text was updated successfully, but these errors were encountered: