From 0f4c7ac90fa1ecbc11bf72503d0b5d2496050338 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Fri, 29 Jul 2022 10:12:37 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B05129=20Prevent=20"fieldForm=20is=20null"?= =?UTF-8?q?=20JS=20error=20when=20updating=20dependant=20field=20For=20exa?= =?UTF-8?q?mple=20when=20changing=20Server.location,=203=20JS=20errors=20a?= =?UTF-8?q?re=20thrown=20in=20the=20console=20:/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/wizardhelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/wizardhelper.js b/js/wizardhelper.js index eb63974a7..51ddf39ae 100644 --- a/js/wizardhelper.js +++ b/js/wizardhelper.js @@ -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();