On Behalf Of fails to populate in Email Receipt
When a Contribution is submitted and "On Behalf Of" is specified, the section on the emailed receipt does not render the On Behalf Of profile information.
We did a little digging, and it appears that the getOnbehalfIds() function is failing, attempting to get the relevant contact_id from the activity record, which has not yet been written.
We have seen this in 4.7.26, 4.7.27, and 4.7.29 and 5.x with both Drupal and WordPress.