From: Matthias Schmidt Date: Tue, 1 Jul 2014 19:07:56 +0000 (+0200) Subject: Add missing usage of additionalFields in form classes X-Git-Tag: 2.1.0_Alpha_1~640 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=182e2322abb9b7f0c5fb00e772a1ce48e95d180a;p=GitHub%2FWoltLab%2FWCF.git Add missing usage of additionalFields in form classes --- diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php index 45eeed64aa..aabacac85c 100644 --- a/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php @@ -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(); diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentEditForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentEditForm.class.php index 939ef6a82c..730e5665b5 100644 --- a/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupAssignmentEditForm.class.php @@ -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();