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/wordpress#109 fix bug when is_monetary is not checked #20929

Merged
merged 1 commit into from
Aug 4, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jul 21, 2021

Overview

This ensures the paymentProcessor is consistenly on the form regardless of is_monetary being checked

https://lab.civicrm.org/dev/wordpress/-/issues/109 highlights that it has been 'required'
even though we don't understand what it means. This removes that brittleness which we can't
'justify' from a logic point of view

Before

Fatal error if execute real-time monetary transactions is unchecked

image

After

poof

Technical Details

This fatal error would date back to Dec last year (when a type hint was added to the function ) but has not been reported until now - probably because users, like the code, mostly ignore that checkbox - but we should be tolerant given we don't know why it exists

The code comments indicate that this was thought to be unreachable & given the breakage was not picked up for 6 months I suspect we can remove it

image

Comments

This ensures the paymentProcessor is consistenly on the form regardless of is_monetary being checked

https://lab.civicrm.org/dev/wordpress/-/issues/109 highlights that it has been 'required'
even though we don't understand what it means. This removes that brittleness which we can't
'justify' from a logic point of view
@civibot
Copy link

civibot bot commented Jul 21, 2021

(Standard links)

@civibot civibot bot added the 5.40 label Jul 21, 2021
@seamuslee001
Copy link
Contributor

Yeh this seems fine to me

@seamuslee001 seamuslee001 merged commit f6cc946 into civicrm:5.40 Aug 4, 2021
@eileenmcnaughton eileenmcnaughton deleted the 5.40 branch August 4, 2021 22:44
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.

2 participants