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

fix host duplication when strict mode is enabled #8630

Merged
merged 3 commits into from
Apr 20, 2020
Merged

fix host duplication when strict mode is enabled #8630

merged 3 commits into from
Apr 20, 2020

Conversation

sc979
Copy link
Contributor

@sc979 sc979 commented Apr 19, 2020

Description

Correct the broken queries when all duplication names are already used.

Fixes # (MON-5324)

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

  • 2.8.x
  • 18.10.x
  • 19.04.x
  • 19.10.x
  • 20.04.x (master)

How this pull request can be tested ?

Duplicate a host. Then duplicate a second time the same host. No blank page should be displayed and the list of host should stay the same.
No stack trace should be thrown to the PHP log... nor the SQL

Checklist

  • I 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).

@sc979 sc979 merged commit 386823a into master Apr 20, 2020
@sc979 sc979 deleted the MON-5324 branch April 20, 2020 10:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants