Skip to content

[main] fix clone mandatory dropdown empty default - #1364

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

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

Conversation

@glpi-project

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

Copy link
Copy Markdown
Contributor

Forward-port of #1357 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 !47654
    Cloning an item would fail when a block contained a required drop-down list with an empty default value; the value 0 was inserted into the clone and then rejected by the required field validation.
    An empty default value is no longer inserted; the actual default values remain in effect.

@glpi-project

glpi-project Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

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

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

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