Wrong behaviour on event Payment Information visibility for unpayed events
Overview
When you edit an unpayed event registration, Payment Information section is visible by default even if "Record payment?" is unchecked.
Reproduction steps
Payment Information should be hidden
- Register a contact to an event without record any payment
- Edit registration
- Note that
Payment Information
section is visible - Check
Record Payment?
field - Note everything is still the same
- Uncheck
Record Payment?
field - Note
Payment Information
section is hidden
You may think that you are recording the contribution but the contribution is not recorded
- Register a contact to an event without record any payment
- Edit registration
- Note that
Payment Information
section is visible (with event fee set on the Amount field) - Click to save (without changing anything)
- Note contribution was not recorded
Current behaviour
Payment Information
section is visible for unpayed event registration editing form
Expected behaviour
Payment Information
section should be hidden for unpayed event registration editing forms and should appear when Record Payment?
is checked.
Environment information
- CiviCRM: Master/5.26.alpha1/5.20.3/5.13.4/