Skip to content

2.13.1

Compare
Choose a tag to compare
@btry btry released this 19 Sep 09:26
· 692 commits to develop since this release

Download it

This version is compatible with GLPI 10.0.

⚠️ You must to upgrade from a previous stable version. Upgrading from a development or testing version is not supported.

Upgrade from a stable version older than 2.13.0

⚠️ The plugin introduces a database sanity check. This feature checks that after the upgrade the tables have the expected structure. This revealed that some instances using Formcreator for years may have accumulated inconsistencies. The upgrade process will fix most of them for you. After the upgrade if some inconsistencies remains a non-blocking error will show:

The database schema is not consistent with the installed Formcreator 2.12.5. 
To see the logs enable the plugin and run the command bin/console glpi:database:check_schema_integrity -p formcreator

If this error happens, switch GLPI to maintenance mode, then from a shell, locate to youtr GLPI instance folder and issue the following commands (requires GLPI 10.0.2 or later):

php bin/console glpi:plugin:activate formcreator
php bin/console glpi:database:check_schema_integrity -p formcreator 

Administrators with an average database knowledge should be able to fix them, based on the diff displayed as the output of the last command.

Once the inconsistencies are fixed, disable maintenance mode.

Upgrade from 2.13.0

A database sanity check is done before running the upgrade. If the tables of the plugin have a difference with the expected schema the upgrade will fail with a message similar to the following:

The database schema is not consistent with the installed Formcreator 2.13.0. 
To see the logs enable the plugin and run the command bin/console glpi:database:check_schema_integrity -p formcreator

It is required to fix the database, using the diff produced by the CLI command given in the message. Once done, try again to upgrade.

ℹ️ If you know what you are doing you may bypass the sanity check from CLI with the following command.

bin/console glpi:plugin:install formcreator -f -p skip-db-check

Possible encoding problems in tickets created in GLPI 9.5 or older

⚠️ GLPI 10.0 encodes rich text content in a different way compared to GLPI 9.5. This revealed some bugs in the plugin in previous versions and GLPI may display old tickets with HTML tags. A CLI tool is available to fix 2 types of inconsistencies. A 3rd case may happen, but is not confirmed so far, this is why the CLI tool is not included in the release yet. The CLI tool is available here if needed.

Bug Fixes

  • inverted existence test on ticket update (2acc5cd4)
  • log more errors, and update obsolete error logging (ae28ed6d)
  • restore page redirections existing in v2.12 (582f926c)
  • update obsolete error logging (da8929e0)
  • abstractitiltarget: glpi 10.0.3 will require a data with a valid value (5f385bb8)
  • actorfield: default value not saved (c3baebbe)
  • actorfield: php warning (6d3e98d1)
  • checkboxesfield: replace div with p in checkbowes answers (9ef95343)
  • composite: php warning breaks JSON if a ticket is not generated (2108983c)
  • descriptionfield: bad form rendering (87a74058)
  • filefield: php error when switching field type to file (a03c7a0a)
  • form: javascript (f05bc697)
  • form: list on self service homepage (ba6d4a58)
  • form: undefined var (169d2c8e)
  • form: url to form answer lists may be invalid (6cd29e6d)
  • install: avoid alter table fail (4dadea8a)
  • install: missing method in upgrade to 2.13.1 (7e9cdcd5)
  • issue: issue not deleted when tichet goes to trash bin (c977b1ca)
  • issue: purge issue when deleting associated ticket (76444ecc)
  • issue: recreate when restore ticket (2656e284)
  • item_targetticket: uuid to ID conversion (e9f326c0)
  • section: name encoding in designer and rendered form" (491dcb69)
  • targetticket: bad constant name (48dda4f3)
  • targetticket: table structure inconsistency (ff56f3f1)
  • targetticket: table structure inconsistency (892a83c3)
  • targetticket,targetchange: tags from queestion or specific tags not saved (ec08d95e)

Features

  • prepare compatibility with PHP 8.2 (#2966) (4bb7f3c3)
  • formanswer,issue: show title in navigation header (1878e4b0)
  • kb: preselect see all categorie (1b669d4f)