Refreshing sales order create results in unusable page
driskell opened this issue · 1 comments
driskell commented
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 commented
Thanks for this bug report I'll schedule in a fix.