GLPI version
11.0.8
Fields plugin version
1.24.2
PHP version
PHP 8.3.6
Description
I'm using the new native Forms feature introduced in GLPI 11 together with the latest version of the Fields plugin.
I created a form that creates a Ticket as destination.
The form contains questions of type Fields (not standard text/dropdown questions). The destination configuration has "Bind additional fields to the destination" enabled.
The ticket is created successfully.
The additional fields container is correctly attached to the ticket, and the additional fields are displayed on the ticket page.
However, the values entered by the user are not copied into the additional fields.
Instead:
- The ticket is created successfully.
- The additional fields container is attached.
- The additional fields are visible.
- All additional fields remain empty.
Expected behavior
The answers from Fields questions should populate the corresponding additional fields in the created ticket.
Current behavior
The ticket is created correctly, but all additional fields remain empty.
Steps to reproduce
- Install GLPI 11.0.8.
- Install the latest Fields plugin.
- Create an Additional Fields container for Tickets.
- Create two Fields (for example: Client and Environment).
- Create a native GLPI Form.
- Add questions of type Fields linked to those additional fields.
- Configure a Ticket destination.
- Enable "Bind additional fields to the destination".
- Submit the form.
Result:
- Ticket is created.
- Additional fields container is attached.
- Additional fields stay empty.
Additional information
I also tested the fix mentioned in issue #1186.
The plugin already contains the flattenScalars() implementation from that issue, so it does not appear to be related.
From debugging, it seems that PluginFieldsDestinationField::applyConfiguratedValueToInputUsingAnswers() is not being executed during ticket creation, although the destination option is correctly displayed in the form configuration.
Could someone confirm whether this is a regression in the native Forms integration or if there is an additional configuration required?
GLPI version
11.0.8
Fields plugin version
1.24.2
PHP version
PHP 8.3.6
Description
I'm using the new native Forms feature introduced in GLPI 11 together with the latest version of the Fields plugin.
I created a form that creates a Ticket as destination.
The form contains questions of type Fields (not standard text/dropdown questions). The destination configuration has "Bind additional fields to the destination" enabled.
The ticket is created successfully.
The additional fields container is correctly attached to the ticket, and the additional fields are displayed on the ticket page.
However, the values entered by the user are not copied into the additional fields.
Instead:
Expected behavior
The answers from Fields questions should populate the corresponding additional fields in the created ticket.
Current behavior
The ticket is created correctly, but all additional fields remain empty.
Steps to reproduce
Result:
Additional information
I also tested the fix mentioned in issue #1186.
The plugin already contains the
flattenScalars()implementation from that issue, so it does not appear to be related.From debugging, it seems that
PluginFieldsDestinationField::applyConfiguratedValueToInputUsingAnswers()is not being executed during ticket creation, although the destination option is correctly displayed in the form configuration.Could someone confirm whether this is a regression in the native Forms integration or if there is an additional configuration required?