Skip to content

fix handle native glpi dropdown types when binding additional field to form destination - #1230

Merged
Rom1-B merged 3 commits into
mainfrom
fix/native-dropdown-form-destination
Jul 27, 2026
Merged

fix handle native glpi dropdown types when binding additional field to form destination#1230
Rom1-B merged 3 commits into
mainfrom
fix/native-dropdown-form-destination

Conversation

@Herafia

@Herafia Herafia commented Jul 27, 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 !45483
  • Fixes the submission of a form containing an additional field of the native glpi dropdown type (e.g : Groups) linked to a destination. The raw response (itemtype/items_id array) was inserted into the database, causing an SQL error and an error when rendering the response.
    We now extract the items_id for all dropdown types, and the id is cast to int before being read.

@Herafia Herafia changed the title fix handle native glpi dropdown types when binding additional fields … fix handle native glpi dropdown types when binding additional field to form destination Jul 27, 2026
@Herafia
Herafia requested a review from Rom1-B July 27, 2026 12:01
@Herafia Herafia self-assigned this Jul 27, 2026
@Herafia Herafia added the bug label Jul 27, 2026
Comment thread CHANGELOG.md Outdated
@Rom1-B
Rom1-B merged commit 4e788e5 into main Jul 27, 2026
3 checks passed
@Rom1-B
Rom1-B deleted the fix/native-dropdown-form-destination branch July 27, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants