angular.module('n52.core.listSelection')
        .controller('SwcValidateParameterConstellationCtrl', ['$scope', 'interfaceService', 'statusService', 'timeseriesService',
            function ($scope, interfaceService, statusService, timeseriesService) {
                var timeseries;
                $scope.isActive = false;
                $scope.validate = function(params) {
                    interfaceService.getTimeseries(null, statusService.status.apiProvider.url, params).then(function (data) {
                        if (angular.isArray(data)) {
                            timeseries = data[0];
                        } else {
                            timeseries = data;
                        }
                        checkActive();
                    });
                };
                $scope.toggleTs = function() {
                    if (!timeseriesService.hasTimeseries(timeseries.internalId)) {
                        timeseriesService.addTimeseries(timeseries);
                    } else {
                        timeseriesService.removeTimeseries(timeseries.internalId);
                    }
                    checkActive();
                };
                checkActive = function() {
                    if (!timeseriesService.hasTimeseries(timeseries.internalId)) {
                        $scope.isActive = false;
                    } else {
                        $scope.isActive = true;
                    }
                };
            }]);

angular.module('n52.core.listSelection')
        .controller('SwcValidateParameterConstellationCtrl', ['$scope', 'interfaceService', 'statusService', 'timeseriesService',
            function ($scope, interfaceService, statusService, timeseriesService) {
                $scope.series;
                $scope.isActive = false;
                $scope.validate = function(params) {
                    interfaceService.getTimeseries(null, statusService.status.apiProvider.url, params).then(function (data) {
                        if (angular.isArray(data)) {
                            $scope.series = data[0];
                        } else {
                            $scope.series = data;
                        }
                        $scope.checkActive($scope.series);
                    });
                };
                $scope.toggleTs = function(series) {
                    if (!timeseriesService.hasTimeseries(series.internalId)) {
                        timeseriesService.addTimeseries(series);
                    } else {
                        timeseriesService.removeTimeseries(series.internalId);
                    }
                    $scope.checkActive(series);
                };
                $scope.checkActive = function(series) {
                    if (!timeseriesService.hasTimeseries(series.internalId)) {
                        $scope.isActive = false;
                    } else {
                        $scope.isActive = true;
                    }
                };
            }]);

fix issues in the in the parameter constellation controller