From b3cc8d2b9a7628891d192d6f234d4a29e641679e Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Tue, 6 Feb 2024 15:44:12 +0100 Subject: [PATCH 1/2] fix(formansswer): keep tickets on delete --- inc/formanswer.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/formanswer.class.php b/inc/formanswer.class.php index 1c9873d91..9fcde93f4 100644 --- a/inc/formanswer.class.php +++ b/inc/formanswer.class.php @@ -940,12 +940,16 @@ public function prepareInputForUpdate($input) { * @return boolean true if pre_delete actions succeeded, false if not */ public function pre_deleteItem() { + global $CFG_GLPI; + $issue = new PluginFormcreatorIssue(); $issue->deleteByCriteria([ 'items_id' => $this->getID(), 'itemtype' => self::getType(), ]); + $CFG_GLPI['keep_tickets_on_delete'] = '1'; + return true; } From 56454548eba6a64c6b5434aae5ce899ca4d5792f Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Mon, 12 Feb 2024 10:38:01 +0100 Subject: [PATCH 2/2] chore: set minimum GLPI version --- plugin.xml | 5 +++++ setup.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 585666260..9e09410c0 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'); +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.1');