Skip to content

Commit

Permalink
Merge pull request #77 from herbdool/drupal-153
Browse files Browse the repository at this point in the history
dev/drupal#153 get UFGroup name for validate method
  • Loading branch information
demeritcowboy authored Jan 16, 2023
2 parents 2db7510 + c697bae commit b829026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/UserProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function buildForm(array $form, FormStateInterface $form_state, AccountIn
* {@inheritdoc}
*/
public function validateForm(array &$form, FormStateInterface $form_state) {
$errors = \CRM_Core_BAO_UFGroup::isValid($this->contactId, $this->ufGroup['title']);
$errors = \CRM_Core_BAO_UFGroup::isValid($this->contactId, $this->ufGroup['name']);

if (is_array($errors)) {
foreach ($errors as $name => $error) {
Expand Down

0 comments on commit b829026

Please sign in to comment.