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

Commit

Permalink
Fix: Remove obsolete code in ACL configuration listing (#11793)
Browse files Browse the repository at this point in the history
  • Loading branch information
emabassi-ext authored Sep 21, 2022
1 parent 4422b96 commit d73780d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
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

0 comments on commit d73780d

Please sign in to comment.