From 0b63878231c2dd81152b59e08ea28c533591d33f Mon Sep 17 00:00:00 2001 From: "Moron, Olivier" Date: Wed, 18 Oct 2023 14:21:20 +0200 Subject: [PATCH] Fixed an issue with sumup when used in simplified interface Set version to 5.0.1 --- js/cases.js | 6 ++++++ processmaker.xml | 4 ++-- setup.php | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/js/cases.js b/js/cases.js index 6416f6b..5b7f34c 100644 --- a/js/cases.js +++ b/js/cases.js @@ -107,6 +107,12 @@ glpi_pm = { // iframe has been validated then we must validate parent form //debugger; + // set the content field (description) + if (typeof tinyMCE != 'undefined' && tinyMCE.activeEditor && data.userrequestsumup && data.userrequestsumup != '_') { + let userrequestsumup = data.userrequestsumup.replace(/(\r\n)|(\r)|(\n)/g, '
'); + tinyMCE.activeEditor.setContent(userrequestsumup); + } + // the GLPI form must be submitted to validate fields myformjq = $('#' + data.glpi_data.glpi_iframeid).parents('form'); myform = myformjq[0]; diff --git a/processmaker.xml b/processmaker.xml index ce14819..8157517 100644 --- a/processmaker.xml +++ b/processmaker.xml @@ -41,11 +41,11 @@ 9.4 - 4.4.0 + 4.4.1 9.5 - 5.0.0 + 5.0.1 10.0 diff --git a/setup.php b/setup.php index fdb8ae9..e1acc59 100644 --- a/setup.php +++ b/setup.php @@ -25,7 +25,7 @@ along with this plugin. If not, see . -------------------------------------------------------------------------- */ -define('PROCESSMAKER_VERSION', '5.0.0'); +define('PROCESSMAKER_VERSION', '5.0.1'); // Minimal GLPI version, inclusive define('PLUGIN_PROCESSMAKER_MIN_GLPI', '10.0');