The api parameter here was removed, seemingly unintentionally. It is picked up on by the script when it checks for email so
needs re-instating
$this->assign('customDataSubType', $this->_contributionType);
$this->assign('entityID', $this->_id);
- $contactField = $this->addEntityRef('contact_id', ts('Contributor'), ['create' => TRUE], TRUE);
- if ($this->_context != 'standalone') {
+ $contactField = $this->addEntityRef('contact_id', ts('Contributor'), ['create' => TRUE, 'api' => ['extra' => ['email']]], TRUE);
+ if ($this->_context !== 'standalone') {
$contactField->freeze();
}