-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Description
Code of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues
Version
GLPI 11 Main
Bug description
Error validateExtraDataInput
`Array
(
[name] => Abonnement SIM
[visibility_strategy] => visible_if
[description] =>
[default_value] => {"items_id":-1}
[extra_data] => Array
(
[categories_filter] => Array
(
[0] => request
[1] => incident
[2] => change
[3] => problem
)
[root_items_id] => 0
[subtree_depth] => 0
[sub_type] => PluginFieldsTypedabonnementfieldDropdown
)
[_type_category] => Glpi\Form\QuestionType\QuestionTypeCategory->item
[type] => Glpi\Form\QuestionType\QuestionTypeItemDropdown
[is_mandatory] => 0
[uuid] => 63f9bcd634c6ec
[forms_sections_uuid] => f998fd56-ae42-4cc7-bdf1-a00fe254eb1c
[vertical_rank] => 4
[horizontal_rank] => NULL
[category] => Glpi\Form\QuestionType\QuestionTypeCategory->item
[forms_sections_id] => 332
[_no_history] =>
[conditions] => [{"item":"question-9349b264-e66c-457c-afe4-f8840530130c","item_uuid":"9349b264-e66c-457c-afe4-f8840530130c","item_type":"question","value_operator":"equals","value":"1868892213"}]
[validation_conditions] => []
)`
if i add into QuestionTypeItem.php :
`public function validateExtraDataInput(array $input): bool
{
if (isset($input['sub_type'])) {
$input['itemtype'] = $input['sub_type'];
}`
I can save the form.
Relevant log output
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
No response
Anything else?
No response
Metadata
Metadata
Assignees
Type
Projects
Status
Backlog