From afec8481bb67caf99703c069cd4abda6e4ebbf90 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 30 Jun 2019 14:16:40 +0200 Subject: [PATCH] Fix reusing same JS variable in form field dependency manager See #2509 --- .../WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1