Skip to content

Fix: remove outdated generated classes before plugin update - #1309

Merged
Rom1-B merged 1 commit into
mainfrom
fix/outdated-generated-classes-on-update
Oct 21, 2026
Merged

Rom1-B merged 1 commit into
mainfrom
fix/outdated-generated-classes-on-update

Conversation

@Herafia

@Herafia Herafia commented Oct 20, 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 !47014

Removes the classes generated at the start of the plugin update. When correcting field names, getTableForItemType() was autoloading the old generated dropdown class (untyped $can_be_translated), which caused a fatal compilation error in GLPI 12.
The files are then regenerated by installUserData(). A test covers this scenario.

@Herafia Herafia self-assigned this Oct 20, 2026
@Herafia
Herafia requested review from Lainow and Rom1-B October 20, 2026 15:22
@Rom1-B
Rom1-B merged commit 9aa7341 into main Oct 21, 2026
7 checks passed
@Rom1-B
Rom1-B deleted the fix/outdated-generated-classes-on-update branch October 21, 2026 07:01
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