Skip to content

fix(forms): Add support for SLA/OLA itemtypes in dropdown questions#23950

Draft
ccailly wants to merge 1 commit intoglpi-project:11.0/bugfixesfrom
ccailly:fix/form-item-dropdown-question-support-slm
Draft

fix(forms): Add support for SLA/OLA itemtypes in dropdown questions#23950
ccailly wants to merge 1 commit intoglpi-project:11.0/bugfixesfrom
ccailly:fix/form-item-dropdown-question-support-slm

Conversation

@ccailly
Copy link
Copy Markdown
Member

@ccailly ccailly commented Apr 17, 2026

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.
  • This change requires a documentation update.

Description

  • It fixes !43464

$question = getItemByTypeName(Question::class, 'SLA dropdown');
$config = $question->getExtraDataConfig();
if (!$config instanceof QuestionTypeItemDropdownExtraDataConfig) {
throw new LogicException();
Copy link
Copy Markdown
Contributor

@SebSept SebSept Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a small explanation in LogicException message can be usefull to spot the issue when it happen.

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