Skip to content

Fix: keep blocks reachable when their entity is deleted - #1373

Open
Rom1-B wants to merge 2 commits into
11.0/bugfixesfrom
support_47891
Open

Rom1-B wants to merge 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 blocks and custom dropdown values 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 blocks and custom dropdown values is seen as used: deleting it from the entity form requires a replacement entity, and the blocks and custom dropdown values are moved to it.
  • Values tables are left out on purpose: their entity is a copy of the parent item one, already kept in sync on transfer.
  • 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, Mary-Clb and RomainLvr and removed request for a team November 26, 2026 15:02
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