N°5129 Prevent "fieldForm is null" JS error when updating dependant field

For example when changing Server.location, 3 JS errors are thrown in the console :/
This commit is contained in:
Pierre Goiffon
2022-07-29 10:12:37 +02:00
parent 0687f9a0a9
commit 0f4c7ac90f

View File

@@ -238,7 +238,7 @@ function WizardHelper(sClass, sFormPrefix, sState, sInitialState, sStimulus)
}
index++;
}
if($('.blockUI').length > 0) {
if ((fieldForm !== null) && ($('.blockUI').length > 0)) {
fieldForm.find('button[type=submit]:not(:disabled)').prop("disabled", true).addClass('disabledDuringFieldLoading');
}
this.AjaxQueryServer();