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 #11766

Conversation

emabassi-ext
Copy link
Contributor

Description

$ctNbr is no more used in ACL menus/resources/actions listing
Remove following code:

www/include//options/accessLists/resourcesACL/listsResourcesAccess.php:    $ctNbr = array();
www/include//options/accessLists/resourcesACL/listsResourcesAccess.php:    $ctNbr = $DBRESULT2->fetchRow();
www/include//options/accessLists/menusACL/listsMenusAccess.php:    $ctNbr = array();
www/include//options/accessLists/menusACL/listsMenusAccess.php:    $ctNbr = $dbResult2->fetchRow();
www/include//options/accessLists/actionsACL/listsActionsAccess.php:    $ctNbr = array();
www/include//options/accessLists/actionsACL/listsActionsAccess.php:    $ctNbr = $DBRESULT2->fetchRow();

Fixes # MON-14971

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software

Target serie

  • 21.04.x
  • 21.10.x
  • 22.04.x
  • 22.10.x (master)

How this pull request can be tested ?

Check if ACL Menus / Actions / Resources listing are displayed without PHP errors (/var/log/php-fpm/centreon-error.log)

Checklist

Community contributors & Centreon team

  • I have followed the coding style guidelines provided by Centreon
  • I have commented my code, especially new classes, functions or any legacy code modified. (docblock)
  • I have commented my code, especially hard-to-understand areas of the PR.
  • I have rebased my development branch on the base branch (master, maintenance).

@sonarqube-decoration
Copy link

@emabassi-ext emabassi-ext merged commit 808da7b into develop Sep 19, 2022
@emabassi-ext emabassi-ext deleted the MON-14971-remove-obsolete-code-in-acl-configuration-listing branch September 19, 2022 08:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants