Contribution for event registration with multiple participants lists them multiple times in "associated participants"
Overview
If an event registration is made for multiple participants the corresponding contribution view lists participants multiple times.
Reproduction steps
- Do a single registration with multiple participants to a paid event
- Go to the resulting contribution and view it
Current behaviour
In the section "Associated participants" each participant is listed multiple times, even for the same registration option.
E.g. for this registration for 8 participants (from the "Contribution Amount" section of the same view):
we get this "Associated Participants" listing:
Expected behaviour
I'm expecting to see each participant listed only once.
Environment information
The event has price sets with multiple options.
Comments
I encountered this since I was trying to get a nice list to include in our invoices. (We cannot use the CiviCRM invoices, partly because of #3881)