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

Refreshing sales order create results in unusable page #10

Open
driskell opened this issue Jul 12, 2017 · 1 comment
Open

Refreshing sales order create results in unusable page #10

driskell opened this issue Jul 12, 2017 · 1 comment

Comments

@driskell
Copy link

Seems Magento 2, when you click Create New Customer, does not navigate the page and loads in the order form blocks. However, if you then refresh the page, it goes directly into creating order with new customer (as one would expect), but then PCA Predict crashes the Javascript on the page with:

ReferenceError: Can't find variable: order

It seems there is no dependency on the forms.js file that creates window.order in the PCA Predict code, or any check that it has been initialised, and tries to access it before the page is fully loaded, crashing out the Javascript and making the page unusable.

I would guess it just needs a check for window.order in the code that calls loadPca.

@henrikvalve
Copy link
Contributor

Thanks for this bug report I'll schedule in a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants