DbResourceForm: Remove default value for host when not required

Mainly used for Oracle

refs #3643
This commit is contained in:
Markus Frosch 2018-12-12 11:09:10 +01:00
parent 574e7671c3
commit 8c58ad7739
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(