Fixes wcf\acp\form\UpdateServerEditForm
authorMatthias Schmidt <gravatronics@live.com>
Fri, 23 Sep 2011 08:19:26 +0000 (10:19 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 23 Sep 2011 08:19:26 +0000 (10:19 +0200)
Two errors:
* Wrong database table column name which causes database error
* Wrong class property and object property name which causes that the server url isn't shown in the form

wcfsetup/install/files/lib/acp/form/UpdateServerEditForm.class.php

index fd813fffb05fa7296ef782b032b88ea8b8bcc4fe..054d2bc8a304fd381cc8385327a2ace9fb3b4402 100755 (executable)
@@ -55,7 +55,7 @@ class UpdateServerEditForm extends UpdateServerAddForm {
                
                // save server
                $updateServerAction = new PackageUpdateServerAction(array($this->packageUpdateServerID), 'update', array('data' => array(
-                       'server' => $this->serverURL,
+                       'serverURL' => $this->serverURL,
                        'loginUsername' => $this->loginUsername,
                        'loginPassword' => $this->loginPassword
                )));
@@ -73,7 +73,7 @@ class UpdateServerEditForm extends UpdateServerAddForm {
                parent::readData();
                
                if (!count($_POST)) {
-                       $this->server = $this->updateServer->server;
+                       $this->serverURL = $this->updateServer->serverURL;
                        $this->loginUsername = $this->updateServer->loginUsername;
                        $this->loginPassword = $this->updateServer->loginPassword;
                }