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

enh(conf/contact) Fixed PHP warning when adding a contact with a non-admin user #10345

Merged
merged 1 commit into from
Oct 21, 2021

Conversation

callapa
Copy link
Contributor

@callapa callapa commented Oct 21, 2021

Description

When adding a contact with a non-admin user, a PHP Warning appears in the PHP error log file.
PHP Warning: Undefined variable $contact_id in /usr/share/centreon/www/include/configuration/configObject/contact/formContact.php on line 791

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
  • Updating documentation (missing information, typo...)

Target serie

  • 20.04.x
  • 20.10.x
  • 21.04.x
  • 21.10.x (master)

Checklist

  • 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 made corresponding changes to the documentation.
  • I have rebased my development branch on the base branch (master, maintenance).

@callapa callapa requested review from a team, adr-mo and a-launois October 21, 2021 08:40
@sonarqube-decoration
Copy link

SonarQube Quality Gate:
Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@callapa callapa merged commit ab4b0be into develop Oct 21, 2021
@callapa callapa deleted the MON-11378 branch October 21, 2021 17:28
callapa added a commit that referenced this pull request Oct 21, 2021
callapa added a commit that referenced this pull request Oct 21, 2021
callapa added a commit that referenced this pull request Oct 22, 2021
callapa added a commit that referenced this pull request Oct 22, 2021
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.

4 participants