<dl{if $errorField == 'serverURL'} class="formError"{/if}>
<dt><label for="serverURL">{lang}wcf.acp.updateServer.serverURL{/lang}</label></dt>
<dd>
- <input type="url" id="serverURL" name="serverURL" value="{$serverURL}" required autofocus class="long">
+ <input type="url" id="serverURL" name="serverURL" value="{$serverURL}" required autofocus class="long"{if $action != 'add'} readonly{/if}>
{if $errorField == 'serverURL'}
<small class="innerError">
{if $errorType == 'empty'}
public function save() {
AbstractForm::save();
- $data = [
- 'serverURL' => $this->serverURL,
- ];
+ $data = [];
if ($this->loginUsername != $this->updateServer->loginUsername || $this->loginPassword) {
$data['loginUsername'] = $this->loginUsername;
$data['loginPassword'] = $this->loginPassword;
public function readData() {
parent::readData();
+ $this->serverURL = $this->updateServer->serverURL;
if (empty($_POST)) {
- $this->serverURL = $this->updateServer->serverURL;
$this->loginUsername = $this->updateServer->loginUsername;
}
}