mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Update RoomEditForm according to RoomAddForm
This commit is contained in:
parent
8c68694c00
commit
418443bb45
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user