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

Plugin Formcreator: Failed to get subtype fields #3

Open
gillesdubois opened this issue Dec 22, 2023 · 0 comments
Open

Plugin Formcreator: Failed to get subtype fields #3

gillesdubois opened this issue Dec 22, 2023 · 0 comments

Comments

@gillesdubois
Copy link
Contributor

Describe the bug

For some questions type, display is not updated according to question type.
Not impacting all type of question and only present when modifying an existing question.

Note : creating issue for tracking, will try to fix and provide a PR / MR

To Reproduce
Steps to reproduce the behavior:

  1. Create a question
  2. Set a type
  3. Save
  4. Change type to "Selection"
  5. Fields are not changed to match type

Expected behavior
Fields change trigger a form change

Additional context

Console error : Plugin Formcreator:

Failed to get subtype fields

Php error :

[2023-12-22 11:24:02] glpiphplog.CRITICAL:   *** Uncaught Exception TypeError: i                                                                                                mplode(): Argument #2 ($array) must be of type ?array, stdClass given in /usr/sh                                                                                                are/itsm-ng/plugins/formcreator/inc/field/radiosfield.class.php at line 84
  Backtrace :
  .../formcreator/inc/field/radiosfield.class.php:84 implode()
  .../formcreator/inc/field/selectfield.class.php:47 GlpiPlugin\Formcreator\Fiel                                                                                                d\RadiosField->getDesignSpecializationField()
  plugins/formcreator/ajax/question_design.php:64    GlpiPlugin\Formcreator\Fiel                                                                                                d\SelectField->getDesignSpecializationField()
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

No branches or pull requests

1 participant