formcreator icon indicating copy to clipboard operation
formcreator copied to clipboard

form name is not updated when cloning a form.

Open thallestorchi opened this issue 1 year ago • 1 comments

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:

  1. clone an existing form
  2. change the name of the created form
  3. delete all targets for tickets if they exist.
  4. create a new ticket target
  5. 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 image

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

thallestorchi avatar Mar 01 '23 21:03 thallestorchi

Hi

The problem very likely comes from the following field image

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.

btry avatar Apr 25 '23 06:04 btry