Skip to content

Commit

Permalink
Fix custom fields on Contact Form
Browse files Browse the repository at this point in the history
  • Loading branch information
joomdonation committed Oct 5, 2021
1 parent 6956e54 commit e919da6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions components/com_contact/src/View/Contact/HtmlView.php
Expand Up @@ -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'
Expand Down

0 comments on commit e919da6

Please sign in to comment.