From 31fc277f225d97bae122a021e4302d24b0b356f9 Mon Sep 17 00:00:00 2001 From: yashodha Date: Thu, 19 Sep 2019 10:54:20 +0530 Subject: [PATCH] freeze the contact field in non standalone context --- CRM/Pledge/Form/Pledge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Pledge/Form/Pledge.php b/CRM/Pledge/Form/Pledge.php index 3d19bf37b0..3e80eb7615 100644 --- a/CRM/Pledge/Form/Pledge.php +++ b/CRM/Pledge/Form/Pledge.php @@ -214,7 +214,7 @@ class CRM_Pledge_Form_Pledge extends CRM_Core_Form { } $contactField = $this->addEntityRef('contact_id', ts('Contact'), ['create' => TRUE, 'api' => ['extra' => ['email']]], TRUE); - if ($this->_context == 'standalone') { + if ($this->_context != 'standalone') { $contactField->freeze(); } -- 2.25.1