Skip to content

Commit

Permalink
Fixed an issue with sumup when used in simplified interface
Browse files Browse the repository at this point in the history
Set version to 4.4.1
  • Loading branch information
tomolimo committed Oct 18, 2023
1 parent eeed2b0 commit 70691cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions js/cases.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '<br>');
tinyMCE.activeEditor.setContent(userrequestsumup);
}

// the GLPI form must be submitted to validate fields
myformjq = $('#' + data.glpi_data.glpi_iframeid).parents('form');
myform = myformjq[0];
Expand Down
2 changes: 1 addition & 1 deletion processmaker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<compatibility>9.4</compatibility>
</version>
<version>
<num>4.4.0</num>
<num>4.4.1</num>
<compatibility>9.5</compatibility>
</version>
</versions>
Expand Down
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
along with this plugin. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
define('PROCESSMAKER_VERSION', '4.4.0');
define('PROCESSMAKER_VERSION', '4.4.1');

// Minimal GLPI version, inclusive
define('PLUGIN_PROCESSMAKER_MIN_GLPI', '9.5');
Expand Down

0 comments on commit 70691cb

Please sign in to comment.