Add missing usage of additionalFields in form classes
authorMatthias Schmidt <gravatronics@live.com>
Tue, 1 Jul 2014 19:07:56 +0000 (21:07 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 1 Jul 2014 19:07:56 +0000 (21:07 +0200)
wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php
wcfsetup/install/files/lib/acp/form/UserGroupAssignmentEditForm.class.php

index 45eeed64aa14e32adfc73ffabbf0468de0b8c7f2..aabacac85cebdf83d1ca4bedf513efa6c8ea41c9 100644 (file)
@@ -120,11 +120,11 @@ class UserGroupAssignmentAddForm extends AbstractForm {
                parent::save();
                
                $this->objectAction = new UserGroupAssignmentAction(array(), 'create', array(
-                       'data' => array(
+                       'data' => array_merge($this->additionalFields, array(
                                'groupID' => $this->groupID,
                                'isDisabled' => $this->isDisabled,
                                'title' => $this->title
-                       )
+                       ))
                ));
                $returnValues = $this->objectAction->executeAction();
                
index 939ef6a82cae2c12177c961a8ab217cc5f02c507..730e5665b5473c8f4e690bd6e6f4e5a2932ecbed 100644 (file)
@@ -79,11 +79,11 @@ class UserGroupAssignmentEditForm extends UserGroupAssignmentAddForm {
                AbstractForm::save();
                
                $this->objectAction = new UserGroupAssignmentAction(array($this->assignment), 'update', array(
-                       'data' => array(
+                       'data' => array_merge($this->additionalFields, array(
                                'groupID' => $this->groupID,
                                'isDisabled' => $this->isDisabled,
                                'title' => $this->title
-                       )
+                       ))
                ));
                $returnValues = $this->objectAction->executeAction();