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

View File

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