From 418443bb45d413485708e4206d48795b5003180e Mon Sep 17 00:00:00 2001 From: Maximilian Mader Date: Sat, 10 Jan 2015 00:45:16 +0100 Subject: [PATCH] Update RoomEditForm according to RoomAddForm --- file/lib/acp/form/RoomEditForm.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/file/lib/acp/form/RoomEditForm.class.php b/file/lib/acp/form/RoomEditForm.class.php index 44381b3..f8aa15e 100644 --- a/file/lib/acp/form/RoomEditForm.class.php +++ b/file/lib/acp/form/RoomEditForm.class.php @@ -83,13 +83,14 @@ public function save() { } \wcf\system\acl\ACLHandler::getInstance()->save($this->roomID, $this->objectTypeID); - \wcf\system\acl\ACLHandler::getInstance()->disableAssignVariables(); + \wcf\system\acl\ACLHandler::getInstance()->disableAssignVariables(); \chat\system\permission\PermissionHandler::clearCache(); // update room $this->objectAction = new \chat\data\room\RoomAction(array($this->roomID), 'update', array('data' => array_merge($this->additionalFields, array( 'title' => $this->title, - 'topic' => $this->topic + 'topic' => $this->topic, + 'maxUsers' => $this->maxUsers )))); $this->objectAction->executeAction(); @@ -113,6 +114,7 @@ public function readData() { $this->title = $this->roomObj->title; $this->topic = $this->roomObj->topic; + $this->maxUsers = $this->roomObj->maxUsers; } }