Skip to content

Conversation

@stonebuzz
Copy link
Contributor

@stonebuzz stonebuzz commented Nov 26, 2025

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.
  • This change requires a documentation update.

Description

Fix for the searchItemMatch Function

Currently, if no host returned by the Centreon API matches the GLPI host (Computer), the function incorrectly returns true. This behavior is misleading and does not reflect the actual result (should be false).

Screenshots (if appropriate):

@stonebuzz stonebuzz requested a review from Mary-Clb November 26, 2025 15:42
@stonebuzz stonebuzz self-assigned this Nov 26, 2025
@stonebuzz stonebuzz added the bug Something isn't working label Nov 26, 2025
@stonebuzz stonebuzz requested a review from Rom1-B November 27, 2025 08:11
@Rom1-B Rom1-B merged commit 19ff2d6 into main Nov 27, 2025
3 checks passed
@Rom1-B Rom1-B deleted the fix_item_match branch November 27, 2025 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Centreon 1.1.1 + GLPI 11.0.2 : Warning: Undefined array key "centreon_id

4 participants