formcreator
formcreator copied to clipboard
form name is not updated when cloning a form.
Describe the bug After cloning forms and changing the name of the cloned form, form responses and tickets associated with it refer to the name of the original form.
To Reproduce Steps to reproduce the behavior:
- clone an existing form
- change the name of the created form
- delete all targets for tickets if they exist.
- create a new ticket target
- the resulting ticket created from the cloned form appears to the self-service profile user with the name of the original form
Expected behavior the resulting ticket created from the cloned form should appear with the new form name defined in step 2
Screenshots
GLPI / Plugins (please complete the following information):
- GLPI version
- 10.0.6
- list of all plugins with their version (available in GLPI > Setup > General > tab System > bottom of the page)
fields Name: Campos adicionais Version: 1.20.0 State: Enabled
Install Method: Manual
behaviors Name: Comportamentos Version: 2.7.2 State: Enabled
Install Method: Manual
datainjection Name: Data injection Version: 2.12.1 State: Enabled
Install Method: Manual
escalade Name: Escalonamento Version: 2.8.1 State: Enabled
Install Method: Manual
formcreator Name: Form Creator Version: 2.13.4 State: Enabled
Install Method: Manual
tag Name: Gerenciamento de Etiquetas Version: 2.10.0 State: Enabled
Install Method: Manual
genericobject Name: Gerenciamento de objetos Version: 2.14.1 State: Enabled
Install Method: Manual
mod Name: GLPI Modifications Version: 2.0.2 State: Not installed
Install Method: Manual
mreporting Name: Mais Relatórios Version: 1.8.2 State: Not installed
Install Method: Manual
reports Name: Relatórios Version: 1.16.0 State: Not installed
Install Method: Manual
Desktop (please complete the following information):
- OS: Debian 11
- Browser [chrome]
- Version 110.0.5481.178 (Versão oficial) 64 bits
Hi
The problem very likely comes from the following field
When you create a form, its value is set from the name of the form, as a default value. Form designers may want to change it and insert question tags like ##answer_42## to customize the name of the form answers (they are not tickets).
When you duplicate a form, this field is duplicated from the original form and is not changed because it is not possible to guess it. If the value is identical to the form's name, I could update it to be identical to the cloned form name, but this would just led to append [duplicate]. This is not useful. I think that the form designer should check it and update it as t here is not much I can do automatically.