diff --git a/components/com_contact/src/Model/ContactModel.php b/components/com_contact/src/Model/ContactModel.php index 94795dc4bbddf..0a865d497c76e 100644 --- a/components/com_contact/src/Model/ContactModel.php +++ b/components/com_contact/src/Model/ContactModel.php @@ -164,7 +164,7 @@ protected function loadFormData() $data['language'] = Factory::getLanguage()->getTag(); } - // Add contact id to contact form data, so fields plugin can work properly + // Add contact catid to contact form data, so fields plugin can work properly if (empty($data['catid'])) { $data['catid'] = $this->getItem()->catid; diff --git a/components/com_contact/src/View/Contact/HtmlView.php b/components/com_contact/src/View/Contact/HtmlView.php index b73f79f1d2899..8a2f9906faefa 100644 --- a/components/com_contact/src/View/Contact/HtmlView.php +++ b/components/com_contact/src/View/Contact/HtmlView.php @@ -141,14 +141,6 @@ public function display($tpl = null) $active = $app->getMenu()->getActive(); - // Get submitted values - $data = $app->getUserState('com_contact.contact.data', []); - - // Add catid for selecting custom fields - $data['catid'] = $item->catid; - - $app->setUserState('com_contact.contact.data', $data); - // If the current view is the active item and a contact view for this contact, then the menu item params take priority if ($active && $active->component == 'com_contact'