mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 01:58:47 +02:00
N°6500 - Fix user request approval freezing in the portal due to "Cannot read properties of undefined (reading 'validation')"
This commit is contained in:
@@ -87,6 +87,12 @@ $(function()
|
||||
// Submit event from the form should be treated as a click on the submit button
|
||||
// as it processes things before sending the request
|
||||
this.element.on('submit', function(oEvent) {
|
||||
// N°6500 Abort if event doesn't come from this form
|
||||
// eg. Extensions like "approval-base" add a sub (HTML) form in the buttons sections of this (conceptual) form, which can cause the submit of that sub form to be catched here first and therefore go to unexpected behavior.
|
||||
if (oEvent.target !== oEvent.currentTarget) {
|
||||
return;
|
||||
}
|
||||
|
||||
me._onSubmitClick(oEvent);
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user