From 77f3f3dfa5acd56ea9d2f31bfa520624d05eb4f2 Mon Sep 17 00:00:00 2001 From: Monish Deb Date: Fri, 29 Oct 2021 14:47:41 +0530 Subject: [PATCH] dev/core#2912 : Can't save extra custom fields when inline and required --- CRM/Contact/Form/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/Form/Contact.php b/CRM/Contact/Form/Contact.php index 2e6b51d888..2d5f82d5e1 100644 --- a/CRM/Contact/Form/Contact.php +++ b/CRM/Contact/Form/Contact.php @@ -333,7 +333,7 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form { if ($groupCount > 1) { $this->set('groupID', $groupID); //loop the group - for ($i = 0; $i <= $groupCount; $i++) { + for ($i = 1; $i <= $groupCount; $i++) { CRM_Custom_Form_CustomData::preProcess($this, NULL, $contactSubType, $i, $this->_contactType, $this->_contactId ); -- 2.25.1