Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(forms): Move the itemtype config field for QuestionTypeItem #18681

Conversation

ccailly
Copy link
Member

@ccailly ccailly commented Jan 8, 2025

Checklist before requesting a review

Please delete options that are not relevant.

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my code.
  • I have added tests that prove my fix is effective or that my feature works.

Description

The itemtype selection field for Item questions (Glpi Objects and Dropdowns) has been moved to the question type selection field, so that only the object selection field is in the default value area.

This arrangement is all the more logical as it is not possible to define an item type question without defining an itemtype; it will not be displayed in the final form. This new interface approach forces the user to select an itemtype by default.

PR #18354 introduces some interface modifications to the question type selection fields, notably by grouping them together. It will be important to do the same with this new field once the PR has been merged.

Screenshots (if appropriate):

Before :

image

Now :

image

@ccailly ccailly self-assigned this Jan 8, 2025
@ccailly ccailly added the Forms label Jan 8, 2025
@ccailly ccailly added this to the 11.0.0 milestone Jan 8, 2025
@cedric-anne cedric-anne merged commit ec0e2a1 into glpi-project:main Jan 14, 2025
9 checks passed
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.

3 participants