Skip to content

[main] Fix: keep tags reachable when their entity is deleted - #415

Open
glpi-project[bot] wants to merge 1 commit into
mainfrom
forward-port/412-to-main
Open

glpi-project[bot] wants to merge 1 commit into
mainfrom
forward-port/412-to-main

Conversation

@glpi-project

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

Copy link
Copy Markdown
Contributor

Forward-port of #412 to main.

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

  • It fixes !47891
  • When an entity was deleted, its tags kept pointing to the missing entity and could no longer be opened or edited, even by a super-admin.
  • The plugin now declares this entity relation to GLPI, so an entity that still holds tags is seen as used: deleting it from the entity form requires a replacement entity, and the tags are moved to it.
  • The related GLPI core fix (Fix(Entity): prevent deleting an entity still in use glpi-project/glpi#26453) extends this check to massive actions and API calls.

Screenshots (if appropriate):

@glpi-project

glpi-project Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

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

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

@Rom1-B
Rom1-B marked this pull request as ready for review November 27, 2026 13:05
@Rom1-B
Rom1-B force-pushed the forward-port/412-to-main branch from eba1e6e to fe15fbc Compare November 27, 2026 13:07
@Rom1-B
Rom1-B requested review from a team, Herafia, Rom1-B and jdurand-teclib and removed request for a team November 27, 2026 13:12
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