From: Matthias Schmidt Date: Sun, 30 Jun 2019 12:16:40 +0000 (+0200) Subject: Fix reusing same JS variable in form field dependency manager X-Git-Tag: 5.2.0_Alpha_1~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=afec8481bb67caf99703c069cd4abda6e4ebbf90;p=GitHub%2FWoltLab%2FWCF.git Fix reusing same JS variable in form field dependency manager See #2509 --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.js index 3c26dbca6f..ffcb47be97 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.js @@ -338,7 +338,7 @@ define(['Dictionary', 'Dom/ChangeListener', 'EventHandler', 'List', 'Dom/Travers for (var i = 0, length = dependencies.length; i < length; i++) { var fields = dependencies[i].getFields(); - for (var j = 0, length = fields.length; j < length; j++) { + for (var j = 0, fieldsLength = fields.length; j < fieldsLength; j++) { var field = fields[j]; _fields.delete(field.id);