Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Fix: Remove obsolete code in ACL configuration listing dev2210x #11793

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@
"return false;\" maxlength=\"3\" size=\"3\" value='1' style=\"margin-bottom:0px;\" name='dupNbr[" .
$topo['acl_action_id'] . "]' />";
/* Contacts */
$ctNbr = array();
$rq = "SELECT COUNT(*) AS nbr FROM acl_group_actions_relations " .
"WHERE acl_action_id = '" . $topo['acl_action_id'] . "'";
$DBRESULT2 = $pearDB->query($rq);
$ctNbr = $DBRESULT2->fetchRow();
$elemArr[$i] = array(
"MenuClass" => "list_" . $style,
"RowMenu_select" => $selectedElements->toHtml(),
Expand Down
4 changes: 0 additions & 4 deletions www/include/options/accessLists/menusACL/listsMenusAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,6 @@
"return false;\" maxlength=\"3\" size=\"3\" value='1' style=\"margin-bottom:0px;\" name='dupNbr[" .
$topo['acl_topo_id'] . "]' />";
/* Contacts */
$ctNbr = array();
$rq2 = "SELECT COUNT(*) AS nbr FROM acl_topology_relations WHERE acl_topo_id = '" . $topo['acl_topo_id'] . "'";
$dbResult2 = $pearDB->query($rq2);
$ctNbr = $dbResult2->fetchRow();
$elemArr[$i] = array(
"MenuClass" => "list_" . $style,
"RowMenu_select" => $selectedElements->toHtml(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,6 @@
. $resources['acl_res_id'] . "]'></input>";

/* Contacts */
$ctNbr = array();
$rq = "SELECT COUNT(*) AS nbr
FROM acl_resources_host_relations
WHERE acl_res_id = '" . $resources['acl_res_id'] . "'";
$DBRESULT2 = $pearDB->query($rq);
$ctNbr = $DBRESULT2->fetchRow();

$allHostgroups = (isset($resources["all_hostgroups"]) && $resources["all_hostgroups"] == 1 ? _("Yes") : _("No"));
$allServicegroups = (isset($resources["all_servicegroups"]) && $resources["all_servicegroups"] == 1 ?
_("Yes") :
Expand Down