Skip to content

Commit

Permalink
Loading proper XML for JForm object in com_contacts contact model (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar authored and rdeutz committed Jun 13, 2017
1 parent 9c36589 commit 07b93b7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/com_contact/models/contact.php
Expand Up @@ -386,7 +386,14 @@ protected function buildContactExtendedData($contact)
$data = $userModel->getItem((int) $contact->user_id);

JPluginHelper::importPlugin('user');
$form = new JForm('com_users.profile');

// Get the form.
JForm::addFormPath(JPATH_SITE . '/components/com_users/models/forms');
JForm::addFieldPath(JPATH_SITE . '/components/com_users/models/fields');
JForm::addFormPath(JPATH_SITE . '/components/com_users/model/form');
JForm::addFieldPath(JPATH_SITE . '/components/com_users/model/field');

$form = JForm::getInstance('com_users.profile', 'profile');

// Get the dispatcher.
$dispatcher = JEventDispatcher::getInstance();
Expand Down

0 comments on commit 07b93b7

Please sign in to comment.