diff options
author | Alexander Vladishev <aleksander.vladishev@zabbix.com> | 2022-06-15 16:49:23 +0300 |
---|---|---|
committer | Alexander Vladishev <aleksander.vladishev@zabbix.com> | 2022-06-15 16:53:05 +0300 |
commit | 1331225eb1751d0829e3e08497218d1c18020ad5 (patch) | |
tree | a1e3df08cd89bf8066985379c9f4fb6fbd454f0b | |
parent | 1797580de8187d8dcdfafaa2ed6297c4fae102db (diff) |
..F....... [ZBX-21163] fixed "Host inventory overview" page behavior when selected host group was removed
* commit '690d8c7d7c7355970169ea00e961628977a5bbe2':
.......... [ZBX-21163] updated Selenium tests
..F....... [ZBX-21163] fixed "Host inventory overview" page behavior when selected host group was removed
(cherry picked from commit 6b845518226c721d16a3effbf7dfbaeaee381e79)
-rw-r--r-- | ChangeLog.d/bugfix/ZBX-21163 | 1 | ||||
-rw-r--r-- | ui/hostinventoriesoverview.php | 4 | ||||
-rw-r--r-- | ui/tests/selenium/testUrlParameters.php | 4 |
3 files changed, 2 insertions, 7 deletions
diff --git a/ChangeLog.d/bugfix/ZBX-21163 b/ChangeLog.d/bugfix/ZBX-21163 new file mode 100644 index 00000000000..630204b96ca --- /dev/null +++ b/ChangeLog.d/bugfix/ZBX-21163 @@ -0,0 +1 @@ +..F....... [ZBX-21163] fixed "Host inventory overview" page behavior when selected host group was removed (Sasha) diff --git a/ui/hostinventoriesoverview.php b/ui/hostinventoriesoverview.php index 661d35c27c5..7ebfa6aef3a 100644 --- a/ui/hostinventoriesoverview.php +++ b/ui/hostinventoriesoverview.php @@ -69,10 +69,6 @@ $filter = [ $ms_groups = []; $filter_groupids = $filter['groups'] ? getSubGroups($filter['groups'], $ms_groups) : null; -if (count($ms_groups) != count($filter['groups'])) { - show_error_message(_('No permissions to referred object or it does not exist!')); -} - $inventories = []; foreach (getHostInventories() as $inventory) { $inventories[$inventory['db_field']] = $inventory['title']; diff --git a/ui/tests/selenium/testUrlParameters.php b/ui/tests/selenium/testUrlParameters.php index a084df06eef..c2df4a4ae07 100644 --- a/ui/tests/selenium/testUrlParameters.php +++ b/ui/tests/selenium/testUrlParameters.php @@ -803,9 +803,7 @@ class testUrlParameters extends CLegacyWebTest { ], [ 'url' => 'hostinventoriesoverview.php?filter_groups%5B%5D=9999999&filter_groupby=&filter_set=1', - 'text_present' => [ - 'No permissions to referred object or it does not exist!' - ] + 'text_present' => 'Host inventory overview' ], [ 'url' => 'hostinventoriesoverview.php', |