Skip to content

Fix: keep models reachable when their entity is deleted - #722

Merged
jdurand-teclib merged 2 commits into
11.0/bugfixesfrom
support_47891
Nov 30, 2026
Merged

jdurand-teclib merged 2 commits into
11.0/bugfixesfrom
support_47891

Conversation

@Rom1-B

@Rom1-B Rom1-B commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

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 models 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 models is seen as used: deleting it from the entity form requires a replacement entity, and the models 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):

@Rom1-B
Rom1-B requested review from a team, Herafia, RomainLvr and jdurand-teclib and removed request for a team November 26, 2026 15:02

@jdurand-teclib jdurand-teclib left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need a migration for this case ?

@jdurand-teclib
jdurand-teclib merged commit 5a20b63 into 11.0/bugfixes Nov 30, 2026
7 checks passed
@jdurand-teclib
jdurand-teclib deleted the support_47891 branch November 30, 2026 07:37
@glpi-project

glpi-project Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Backport-action backported this pull request in workflow run 46375194921.

Target Status
main ⚠️ Drafted with conflicts #725

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.

2 participants