Skip to content

[main] [Fix]: unclear and false positive warnings + an issue with additional informations targetting same field name over differents items (Glpi 11) - #704

Closed
glpi-project[bot] wants to merge 2 commits into
mainfrom
forward-port/695-to-main
Closed

glpi-project[bot] wants to merge 2 commits into
mainfrom
forward-port/695-to-main

Conversation

@glpi-project

@glpi-project glpi-project Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Forward-port of #695 to main.

Note

This PR also exists for Glpi 12. #701

  • 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

  • It fixes !47354
  • Here is a brief description of what this PR does
    • Change unclear and generic warning messages in the logs into more explicit ones (especially for mapping issues)
    • Added a warning message when attempting to connect an item to a network port results in finding 0 or several ports
    • Fix a false positive warning when creating a network port without requesting it to be attached to a switch (considered as failed and triggered a warning)
    • Fix 2 issues regarding additional informations sharing a field name accross multiple itemtypes
      • they were overwritting eachother (i.e a Memory name overwritting a Processor name, or both having the same name...)
      • The data data injection form was only displaying the names of the fields, and not their itemtype (c.f screenshots)
        Unit tests to cover changes and ensure no regression

Screenshots (if appropriate):

Before solving the field names display issue:
image

After:
image

@glpi-project

glpi-project Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin forward-port/695-to-main
git worktree add --checkout .worktree/forward-port/695-to-main forward-port/695-to-main
cd .worktree/forward-port/695-to-main
git reset --hard HEAD^
git cherry-pick -x 499e38fc1a67bece2c242a46891df17b1c36bcbf

@jdurand-teclib
jdurand-teclib force-pushed the forward-port/695-to-main branch from f789f0a to 8a00b49 Compare December 2, 2026 10:53
@jdurand-teclib
jdurand-teclib marked this pull request as ready for review December 2, 2026 11:05
@jdurand-teclib
jdurand-teclib requested review from a team, Mary-Clb, Rom1-B and RomainLvr and removed request for a team December 2, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant