From d0c835833422767063ec62456fb648126bb84b9e Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 15 Jan 2020 09:57:49 +1300 Subject: [PATCH] dev/user-interface#13 fix regression where option to email is not longer displayed. 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 --- CRM/Contribute/Form/Contribution.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index 49e580d30f..04fa3e074a 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -607,8 +607,8 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP $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(); } -- 2.25.1