Skip to content

Commit

Permalink
User profile form is prepated twice in frontend. #18065
Browse files Browse the repository at this point in the history
  • Loading branch information
Denitz committed Oct 3, 2017
1 parent 7ab744f commit bf6ac31
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions components/com_users/models/profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,6 @@ public function getForm($data = array(), $loadData = true)
return false;
}

// For com_fields the context is com_users.user
JLoader::import('components.com_fields.helpers.fields', JPATH_ADMINISTRATOR);
FieldsHelper::prepareForm('com_users.user', $form, $data);

// Check for username compliance and parameter set
$isUsernameCompliant = true;
$username = $loadData ? $form->getValue('username') : $this->loadFormData()->username;
Expand Down

0 comments on commit bf6ac31

Please sign in to comment.