Link to record payment from within participant change selections links it to wrong contribution, or crashes if that doesn't exist
- Register an event participant for a paid event.
- In the record payment section of the registration, change the amount to less than the total so it's just a partial payment.
- Save.
- View/edit the participant record. Note the id in the url.
- Click Change Selections.
- Click View Payments.
- Click Record Payment. Note the id in the url. It's the participant id not the contribution id. If a contribution with that id doesn't exist then at this point it crashes.
- If it does exist, note now at this point the balance owed displayed may be incorrect because it's from an unrelated contribution.
- Fill it out and save.
- Note it takes you to a different contact and has applied the payment to the unrelated contribution.
This is only from the Change Selections section. The other Record Payment link found at the bottom of the participant record when you expand the triangle is correct.
Can reproduce on dmaster. I doubt this is recent.