Payment appears as 123 units of $1 rather than one unit of $123 if using other amount field
Overview
This appears to be a regression in CiviCRM 5.69 upwards. If you create a contribution pages that allows other amounts the amount in that field is recorded in the quantity field of the line item rather than the unit price.
It looks like the quantity and the unit price have been swapped.
Reproduction steps
- Create a contribution page with the other amounts section enabled
- Visit the contribution page and type an amount in 'Other amount' field
- View the contact record - note that the quantity is the amount and the unit price is 1.00
Current behaviour
The amount is recorded in the quantity field. The unit price is $1.00.
Expected behaviour
The quantity is 1. The amount is recorded in the unit price field.
Environment information
Tested in CiviCRM 5.69, 5.70 and 5.73alpha1 (current dmaster). It is an issue in all three versions.
I'm not sure when this stopped working, but think it is quite recent.