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

dev/financial/5 If a currency has been disabled allow the form to be submitted #11795

Merged
merged 1 commit into from
Mar 12, 2018

Conversation

mattwire
Copy link
Contributor

@mattwire mattwire commented Mar 9, 2018

See https://lab.civicrm.org/dev/financial/issues/5

Overview

If you have contributions / recurring contributions in a specific currency and subsequently disable that currency in CiviCRM settings it is no longer possible to submit forms with an "amount" element that add the currency as a frozen value (eg. recurring contribution updateSubscription).

Before

Cannot submit form.

After

Form can be submitted, record can be updated. A warning is written to the log warning that the currency is disabled but still in use.

@eileenmcnaughton
Copy link
Contributor

test this please

@eileenmcnaughton
Copy link
Contributor

Hmm - this is pretty obscure but will some mucking around I could replicate it & I don't see a downside with this fix even if it feels like an odd thing to be handling

screenshot 2018-03-12 22 05 16

@eileenmcnaughton eileenmcnaughton merged commit 5528fa6 into civicrm:master Mar 12, 2018
@adixon
Copy link
Contributor

adixon commented Jul 5, 2018

FWIW - the issue with this fix is that it doesn't anticipate that the function would be called without a default currency, generating confusing warnings in the log. Fixed here:
91a3322
I think this addCurrency function has still got some issues, though.

@mattwire mattwire deleted the form_disabled_currency branch September 25, 2018 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants