Skip to content

Commit

Permalink
Solves issue #20195 (#20214)
Browse files Browse the repository at this point in the history
  • Loading branch information
degobbis authored and Michael Babker committed Apr 29, 2018
1 parent 2bf24f2 commit 8b480c7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions components/com_contact/views/contact/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,13 @@ public function display($tpl = null)
$item = $this->get('Item');
$state = $this->get('State');

if (empty($item->catid))
{
$app->setUserState('com_contact.contact.data', array('catid' => $item->catid));
}
// 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);

$this->form = $this->get('Form');

Expand Down

0 comments on commit 8b480c7

Please sign in to comment.