-
Notifications
You must be signed in to change notification settings - Fork 69
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
Fix - HPOS compatibility on Edit Order Screen #7527
Conversation
Reset buttons on Modals on Edit Order Page were not working in HPOS mode. Fixed by using the correct fields and added a workaround for core issue woocommerce/woocommerce#40871.
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: +35 B (0%) Total Size: 1.43 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jessy-p in case when I press cancel on the Modal, it does set it to cancelled on the current develop branch. However when I press do nothing, it set it to blank. Can you please check once?
https://github.com/Automattic/woocommerce-payments/assets/15019298/4c7a7dda-08b2-4af0-9adc-d82a9dba9aa0
Screen.Recording.2023-10-23.at.19.46.45.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! tests well 🚢
Fixes #7466
Changes proposed in this Pull Request
When HPOS is enabled, the order status should be fetched from
#original_order_status
and not#original_post_status
.#original_order_status
value on HPOS order edit is not prefixed withwc-
woocommerce/woocommerce#40871Ref: p1697706516222469-slack-C0E1AV8T0
Testing instructions
(Without the fix in this branch, the dropdown is not set correctly when user cancels the action)
npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge