diff --git a/inc/formanswer.class.php b/inc/formanswer.class.php
index e5924f794..316b3c793 100644
--- a/inc/formanswer.class.php
+++ b/inc/formanswer.class.php
@@ -995,7 +995,7 @@ public function prepareInputForUpdate($input) {
* @return boolean true if pre_delete actions succeeded, false if not
*/
public function pre_deleteItem() {
- global $DB;
+ global $DB, $CFG_GLPI;
$issue = new PluginFormcreatorIssue();
$issue->deleteByCriteria([
@@ -1008,6 +1008,8 @@ public function pre_deleteItem() {
self::getForeignKeyField() => $this->getID(),
]);
+ $CFG_GLPI['keep_tickets_on_delete'] = '1';
+
return true;
}
diff --git a/plugin.xml b/plugin.xml
index 009461403..3f283e5e6 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -58,6 +58,11 @@ Features
Teclib'
+
+ 2.13.9
+ ~10.0.7
+ https://github.com/pluginsGLPI/formcreator/releases/download/2.13.9/glpi-formcreator-2.13.9.tar.bz2
+
2.13.8
~10.0
diff --git a/setup.php b/setup.php
index dfd52a772..ad389758b 100644
--- a/setup.php
+++ b/setup.php
@@ -40,7 +40,7 @@
define('PLUGIN_FORMCREATOR_IS_OFFICIAL_RELEASE', true);
// Minimal GLPI version, inclusive
-define ('PLUGIN_FORMCREATOR_GLPI_MIN_VERSION', '10.0.5');
+define ('PLUGIN_FORMCREATOR_GLPI_MIN_VERSION', '10.0.7');
// Maximum GLPI version, exclusive (ignored if PLUGIN_FORMCREATOR_IS_OFFICIAL_RELEASE == false)
define ('PLUGIN_FORMCREATOR_GLPI_MAX_VERSION', '10.2');