* Fix can't submit GLPI glpi when in SelfService

Set version to 5.0.2
This commit is contained in:
Moron, Olivier
2023-11-21 15:25:01 +01:00
parent 0b63878231
commit 564f77eb5b
3 changed files with 5 additions and 2 deletions

View File

@@ -88,6 +88,9 @@ glpi_pm = {
myform.pm_glpi_form_validate = false;
if (myformjq.attr('data-submitted') != undefined) {
myformjq.attr('data-submitted', 'false');
}
let button = myformjq.find('[name=add][type="submit"]');
myform.requestSubmit(button.length ? button[0] : undefined);
}