From e919da6403ad89886e5debf2d3840f02525a1ab0 Mon Sep 17 00:00:00 2001 From: Tuan Pham Ngoc Date: Tue, 5 Oct 2021 21:56:08 +0700 Subject: [PATCH] Fix custom fields on Contact Form --- components/com_contact/src/View/Contact/HtmlView.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/components/com_contact/src/View/Contact/HtmlView.php b/components/com_contact/src/View/Contact/HtmlView.php index 49ce47768e8dd..27fec11a54816 100644 --- a/components/com_contact/src/View/Contact/HtmlView.php +++ b/components/com_contact/src/View/Contact/HtmlView.php @@ -131,14 +131,6 @@ public function display($tpl = null) $active = $app->getMenu()->getActive(); - // Get submitted values - $data = $app->getUserState('com_contact.contact.data', array()); - - // 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'