From 7d4f953c89b6cb921d08a3132e5fd0a29124336d Mon Sep 17 00:00:00 2001 From: Monica Goward Date: Sat, 18 Mar 2017 17:32:43 +0000 Subject: [PATCH] Array iteration bugfix --- src/main/resources/public/scripts/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/public/scripts/app.js b/src/main/resources/public/scripts/app.js index f01e6ee..5898c7f 100644 --- a/src/main/resources/public/scripts/app.js +++ b/src/main/resources/public/scripts/app.js @@ -2347,7 +2347,7 @@ app.controller('DomoticzController', function ($scope, $location, $http, bridgeS } else { $scope.selectAll = true; - for(var x = 0; x < bridgeService.state.haldevices.length; x++) { + for(var x = 0; x < bridgeService.state.domoticzdevices.length; x++) { if($scope.bulk.devices.indexOf(bridgeService.state.domoticzdevices[x]) < 0) $scope.bulk.devices.push(bridgeService.state.domoticzdevices[x].devicename); } @@ -2469,7 +2469,7 @@ app.controller('LifxController', function ($scope, $location, $http, bridgeServi } else { $scope.selectAll = true; - for(var x = 0; x < bridgeService.state.haldevices.length; x++) { + for(var x = 0; x < bridgeService.state.lifxdevices.length; x++) { if($scope.bulk.devices.indexOf(bridgeService.state.lifxdevices[x]) < 0) $scope.bulk.devices.push(bridgeService.state.lifxdevices[x].devicename); }