Skip to content

Commit

Permalink
Re-introduce getValues() override for subform values in wizard pages
Browse files Browse the repository at this point in the history
Wizard pages don't subclass ConfigForm for which the patch was intended. Sorry for the bug.

refs #10905
  • Loading branch information
lippserd committed Dec 23, 2015
1 parent 17dda6d commit 23b51e8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions modules/setup/application/forms/AuthBackendPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,21 @@ public function createElements(array $formData)
$this->addSubForm($backendForm, 'backend_form');
}

/**
* Retrieve all form element values
*
* @param bool $suppressArrayNotation Ignored
*
* @return array
*/
public function getValues($suppressArrayNotation = false)
{
$values = parent::getValues();
$values = array_merge($values, $values['backend_form']);
unset($values['backend_form']);
return $values;
}

/**
* Validate the given form data and check whether it's possible to authenticate using the configured backend
*
Expand Down
15 changes: 15 additions & 0 deletions modules/setup/application/forms/UserGroupBackendPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,19 @@ public function createElements(array $formData)
)
);
}

/**
* Retrieve all form element values
*
* @param bool $suppressArrayNotation Ignored
*
* @return array
*/
public function getValues($suppressArrayNotation = false)
{
$values = parent::getValues();
$values = array_merge($values, $values['backend_form']);
unset($values['backend_form']);
return $values;
}
}

0 comments on commit 23b51e8

Please sign in to comment.