Skip to content
Snippets Groups Projects
Commit d1bd4bec authored by colemanw's avatar colemanw
Browse files

#1853 - Fix validation errors when removing contact subtype

parent 650d3a7f
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