Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimirs Maksimovs <vladimirs.maksimovs@zabbix.com>2021-01-22 15:19:47 +0300
committerVladimirs Maksimovs <vladimirs.maksimovs@zabbix.com>2021-01-22 15:19:47 +0300
commit00e696f6c018d1b4236a4e074703ce113d9f8475 (patch)
tree2e372208ea86545189482413c9e7c4adfbdb0dd7 /ui/setup.php
parent750b5029f809f6369397da3715a8c5ff720ffff9 (diff)
..F....... [ZBXNEXT-5759] fixed database name is mandatory when host name is specified
Diffstat (limited to 'ui/setup.php')
-rw-r--r--ui/setup.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/setup.php b/ui/setup.php
index 392b9202a9f..80e17b8447b 100644
--- a/ui/setup.php
+++ b/ui/setup.php
@@ -42,7 +42,7 @@ $fields = [
'type' => [T_ZBX_STR, O_OPT, null, IN('"'.ZBX_DB_MYSQL.'","'.ZBX_DB_POSTGRESQL.'","'.ZBX_DB_ORACLE.'"'), null],
'server' => [T_ZBX_STR, O_OPT, null, null, null],
'port' => [T_ZBX_INT, O_OPT, null, BETWEEN(0, 65535), null, _('Database port')],
- 'database' => [T_ZBX_STR, O_OPT, null, NOT_EMPTY, '(isset({type}) && ({type} !== "'.ZBX_DB_ORACLE.'" || (isset({server}) && {server} !== "")))', _('Database name')],
+ 'database' => [T_ZBX_STR, O_OPT, null, NOT_EMPTY, '(isset({type}) && {type} !== "'.ZBX_DB_ORACLE.'")', _('Database name')],
'user' => [T_ZBX_STR, O_OPT, null, null, null],
'password' => [T_ZBX_STR, O_OPT, null, null, null],
'schema' => [T_ZBX_STR, O_OPT, null, null, null],