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

[v4.1] Fix error added when resetting order flow on an empty order #5336

Merged
merged 1 commit into from
Aug 14, 2023

Commits on Aug 14, 2023

  1. Fix error added when resetting order flow on an empty order

    #4369 introduced a regression
    where when calling `Spree::Order#restart_checkout_flow` on an empty
    order, an error would be added to the order. That happened when calling
    `#next` and the validation failed because no line items were present.
    
    We restore the previous behavior where we only try going to the
    `"address"` state if the order has line items.
    
    (cherry picked from commit 82c7bdf)
    waiting-for-dev committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    46dd840 View commit details
    Browse the repository at this point in the history