-
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 for fatal error when saving changes on Multi-Currency page #2182
Conversation
…e main multi-currency page
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! I left a comment regarding a future section, but I'm pre-approving this.
$available_currencies = $this->multi_currency->get_available_currencies(); | ||
update_option( $this->id . '_manual_rate_' . $current_section, $available_currencies[ strtoupper( $current_section ) ]->get_rate() ); | ||
// If we are saving the settings for an individual currency, we have some additional logic. | ||
if ( '' !== $current_section ) { |
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.
Soon we'll also introduce the store
section. Do you think we should also include a check for it here in case we forget to do it when enabling it?
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.
Good idea! Updated in ccbeab3.
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.
Awesome!
Fixes #2180
Changes proposed in this Pull Request
Save Changes
on the main Multi-Currency page (with the currency list) by hiding the save changes button on this page.Testing instructions
Settings -> Multi Currency
page.Save Changes
button is no longer there.Save Changes
button is present on the "edit" page for a single currency.