Merge pull request #3649 from Icinga/feature/dbresource-host-optional

DbResourceForm: Remove default value for host when not required
This commit is contained in:
Markus Frosch 2018-12-12 11:19:19 +01:00 committed by GitHub
commit df486d829d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class DbResourceForm extends Form
'label' => $this->translate('Host'),
'description' => $this->translate('The hostname of the database')
. ($socketInfo ? '. ' . $socketInfo : ''),
'value' => 'localhost'
'value' => $hostIsRequired ? 'localhost' : ''
)
);
$this->addElement(