formcreator icon indicating copy to clipboard operation
formcreator copied to clipboard

Generating inconsistency when duplicating a form.

Open jgustavoneto opened this issue 1 year ago • 2 comments

Describe the bug When you duplicate a form, the form display name remains the same as the original form. This name is saved in the database in the glpi.glpi_plugin_formcreator_forms table in the formanswer_name column. This causes inconsistency in the generated calls.

To Reproduce Steps to reproduce the behavior: 1 - Select a form to duplicate. 2 - Answer this duplicate form. 3 - Note that the answer to the duplicate form contains the name of the original form.

Expected behavior The formanswer_name column of the glpi.glpi_plugin_formcreator_forms story should have the new value.

Screenshots form

GLPI / Plugins (please complete the following information):

  • GLPI version -- 10.0.16
  • list of all plugins with their version (available in GLPI > Setup > General > tab System > bottom of the page) Name: ActualTime Version: 3.0.0 State: Enabled Name: Alertas Version: 1.12.3 State: Enabled
    Name: Campos adicionais Version: 1.21.13 State: Enabled
    Name: Comportamentos Version: 2.7.3 State: Enabled
    Name: Form Creator Version: 2.13.9 State: Enabled
    Name: Gerenciamento de Etiquetas Version: 2.11.7 State: Enabled
    Name: Gerenciamento de objetos Version: 2.14.10 State: Enabled
    Name: GLPI Inventory Version: 1.4.0 State: Enabled
    Name: Importação de fornecedores Version: 3.0.8 State: Enabled
    Name: Imprimir em PDF Version: 3.0.0 State: Enabled
    Name: Integração com Gitlab Version: 0.0.1 State: Installed / not activated
    Name: Mais Relatórios Version: 1.8.6 State: Enabled
    Name: Mask Version: 3.0.2 State: Enabled
    Name: Sincronização do MantisBT Version: 4.4.1 State: Enabled

Desktop (please complete the following information):

  • OS: WINDOWS
  • Browser: Chrome
  • Version: 130.0.6723.59

jgustavoneto avatar Oct 24 '24 12:10 jgustavoneto

Bonjour,

Je confirme avoir exactement le même bug sur la version 2.13.10 du plugin.

Ci-dessous les infos systèmes :

Information about system installation and configuration
GLPI 10.0.18 ( => /var/www/helpdesk)
Installation mode: TARBALL
Current language:en_GB

Server
 
Operating system: Linux AZ-01-VM-GLPI01 6.8.0-1016-azure #​18-Ubuntu SMP Fri Oct  4 19:12:19 UTC 2024 x86_64
PHP 8.2.22 apache2handler (Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apcu, bz2, calendar,
ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, intl, json, ldap, libxml, mbstring, mysqli,
mysqlnd, openssl, pcre, pdo_mysql, posix, random, readline, session, shmop, sockets, sodium, standard, sysvmsg, sysvsem,
sysvshm, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="300" memory_limit="4096M" post_max_size="8M" safe_mode="" session.save_handler="files"
upload_max_filesize="2M" disable_functions=""
Software: Apache/2.4.58 (Ubuntu) (Apache/2.4.58 (Ubuntu) Server at helpdesk.boccard.fr Port 443
)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Server Software: (Ubuntu)
Server Version: 8.0.41-0ubuntu0.24.04.1
Server SQL Mode: STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
Parameters: [email protected]/helpdesk
Host info: 127.0.0.1 via TCP/IP

PHP version (8.2.22) is supported. Sessions configuration is OK. Allocated memory is sufficient. mysqli extension is installed. Following extensions are installed: dom, fileinfo, filter, libxml, json, simplexml, xmlreader, xmlwriter. curl extension is installed. gd extension is installed. intl extension is installed. zlib extension is installed. The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present. Database engine version (8.0.41) is supported. No files from previous GLPI version detected. The log file has been created successfully. Write access to /var/www/helpdesk/files/_cache has been validated. Write access to /var/www/helpdesk/files/_cron has been validated. Write access to /var/www/helpdesk/files has been validated. Write access to /var/www/helpdesk/files/_dumps has been validated. Write access to /var/www/helpdesk/files/_graphs has been validated. Write access to /var/www/helpdesk/files/_lock has been validated. Write access to /var/www/helpdesk/files/_pictures has been validated. Write access to /var/www/helpdesk/files/_plugins has been validated. Write access to /var/www/helpdesk/files/_rss has been validated. Write access to /var/www/helpdesk/files/_sessions has been validated. Write access to /var/www/helpdesk/files/_tmp has been validated. Write access to /var/www/helpdesk/files/_uploads has been validated.

Plugins list
 
formcreator          Name: Form Creator                   Version: 2.13.10    State: Enabled
Install Method: Manual fusioninventory Name: FusionInventory Version: 9.5+4.2 State: Installed / not activated
Install Method: Manual oauthimap Name: Oauth IMAP Version: 1.4.3 State: Enabled
Install Method: Manual pdf Name: Print to pdf Version: 3.0.0 State: Enabled
Install Method: Manual dashboard Name: Tableau de bord Version: 0.9.9 State: Not installed
Install Method: Manual

boccardit avatar Apr 18 '25 05:04 boccardit

Hi

I created a form and I customized the form answer name then duplicated it. I don't reproduce; here is my result.

Image

btry avatar Apr 18 '25 06:04 btry