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

Currency serialization fixes #48

Merged
merged 1 commit into from
Feb 5, 2020
Merged

Conversation

microposmp
Copy link
Contributor

Fix reading known currencies and add back initialization of default currency configured in settings.

I've only done tests with the PricePart, The changes are not verified with the PriceVariantsPart.

The main issue was that when a known currency was saved only the CurrencyIsoCode is saved. When reading it back the missing values resulted in it being handled as unknown.

Added back the CommerceSettingsConfiguration so that the default currency configured for the site is taken into consideration.

Drivers/PricePartDisplayDriver.cs Outdated Show resolved Hide resolved
MoneyDataType/LegacyAmountConverter.cs Outdated Show resolved Hide resolved
Fix reading known currencies and add back initialization of default currency configured in settings.
@bleroy bleroy merged commit 1a3deec into OrchardCMS:master Feb 5, 2020
@microposmp microposmp deleted the currency-fixes branch February 6, 2020 00:11
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

Successfully merging this pull request may close these issues.

None yet

2 participants