Skip to content
Snippets Groups Projects
Unverified Commit 2f01e12b authored by colemanw's avatar colemanw Committed by GitHub
Browse files

Merge pull request #17765 from colemanw/dev/core#1853

#1853 - Fix validation errors when removing contact subtype
parents b0422f12 d1bd4bec
Branches
Tags
No related merge requests found
......@@ -367,8 +367,8 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form {
else {
$contactSubType = $this->_contactSubType;
// need contact sub type to build related grouptree array during post process
if (!empty($_POST['contact_sub_type'])) {
$contactSubType = $_POST['contact_sub_type'];
if (!empty($_POST['qfKey'])) {
$contactSubType = $_POST['contact_sub_type'] ?? NULL;
}
//only custom data has preprocess hence directly call it
CRM_Custom_Form_CustomData::preProcess($this, NULL, $contactSubType,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment