Merge pull request #163 from tomolimo/5.0/bugfixes

Fixed an issue with sumup when used in simplified interface
This commit is contained in:
tomolimo
2023-10-18 14:29:34 +02:00
committed by GitHub
3 changed files with 9 additions and 3 deletions

View File

@@ -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];

View File

@@ -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>

View File

@@ -25,7 +25,7 @@ You should have received a copy of the GNU General Public License
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');