mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 22:04:25 +02:00
Make host
optional for oci
database resources (#5063)
`oci` uses Zend's `Oracle` adapter, which does not use this setting at all. fixes #5062
This commit is contained in:
commit
0424c66a9c
@ -58,7 +58,7 @@ class DbResourceForm extends Form
|
|||||||
$offerMysql = true;
|
$offerMysql = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($dbChoice === 'oracle') {
|
if ($dbChoice === 'oracle' || $dbChoice === 'oci') {
|
||||||
$hostIsRequired = false;
|
$hostIsRequired = false;
|
||||||
} else {
|
} else {
|
||||||
$hostIsRequired = true;
|
$hostIsRequired = true;
|
||||||
|
@ -406,7 +406,7 @@ class Platform
|
|||||||
*/
|
*/
|
||||||
public static function hasOracleSupport()
|
public static function hasOracleSupport()
|
||||||
{
|
{
|
||||||
return static::extensionLoaded('pdo_oci') && static::classExists('Zend_Db_Adapter_Pdo_Mysql');
|
return static::extensionLoaded('pdo_oci') && static::classExists('Zend_Db_Adapter_Pdo_Oci');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user