Renewals not processed correctly on uniqueness constraint for membership id
One-sentence description
Renewals not processed correctly on uniqueness constraint for membership id
Current behaviour / Reproducing the bug
- Do a renewal for 1 year
- Approve it, add a payment, finish it fully etc
- Do a renewal for the rest of your study
- Approve it
- Process a payment
- Breakage
(the payment gets processed, the membership is correctly added to the user, but the renewal does stick at 'approved' (with a processed payment attached))
Expected behaviour
Do not crash