mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user