5.51 regression - Contribution import - external id/contact id matches to wrong records
Overview
5.51 introduced a bug whereby contributions were assigned to the wrong contacts if external id or contact id was used as a matching field.
Reproduction steps
- Make sure you have a contact whose id is 1.
- Create another contact whose id starts with 1. E.g. 11, 1002...
- Give the second contact an external identifier.
- Create a CSV for contribution import; include an external id column; create a valid row that uses the external id from the last step.
- Run the contribution import, using external identifier as a match-to-contact field.
Current behaviour
The imported contribution is attached to contact id 1.
Expected behaviour
The imported contribution should be attached to the contact with the specified external id.
Comments
PR forthcoming