mirror of
https://github.com/humhub/humhub.git
synced 2025-04-20 23:21:54 +02:00
Don't reset additional registration form elements on init default elements (#7461)
This commit is contained in:
parent
163d948e6b
commit
c8be19776f
@ -94,8 +94,9 @@ class Registration extends HForm
|
||||
*/
|
||||
protected function setFormDefinition()
|
||||
{
|
||||
$this->definition = [];
|
||||
$this->definition['elements'] = [];
|
||||
if (!isset($this->definition['elements']) || !is_array($this->definition['elements'])) {
|
||||
$this->definition['elements'] = [];
|
||||
}
|
||||
$this->definition['elements']['User'] = $this->getUserFormDefinition();
|
||||
$this->definition['elements']['GroupUser'] = $this->getGroupFormDefinition();
|
||||
if ($this->enablePasswordForm) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user