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 5.0.1
  • Loading branch information
tomolimo committed Oct 18, 2023
1 parent c6cd509 commit 0b63878
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 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
4 changes: 2 additions & 2 deletions processmaker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
<compatibility>9.4</compatibility>
</version>
<version>
<num>4.4.0</num>
<num>4.4.1</num>
<compatibility>9.5</compatibility>
</version>
<version>
<num>5.0.0</num>
<num>5.0.1</num>
<compatibility>10.0</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', '5.0.0');
define('PROCESSMAKER_VERSION', '5.0.1');

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

0 comments on commit 0b63878

Please sign in to comment.