Commit ab236646 authored by luxcem's avatar luxcem

hotfix search

parent b85d9413
...@@ -49,7 +49,7 @@ angular.module('soussurveillance') ...@@ -49,7 +49,7 @@ angular.module('soussurveillance')
currentDepute = depute; currentDepute = depute;
} }
}; };
$scope.applySearch = function applySearch() { $scope.applySearch = function applySearch() {
var filteredDeputes = deputes; var filteredDeputes = deputes;
if ($scope.search.group !== '') { if ($scope.search.group !== '') {
...@@ -60,7 +60,7 @@ angular.module('soussurveillance') ...@@ -60,7 +60,7 @@ angular.module('soussurveillance')
if ($scope.search.status !== '') { if ($scope.search.status !== '') {
filteredDeputes = _.filter(filteredDeputes, function(depute) { filteredDeputes = _.filter(filteredDeputes, function(depute) {
return deputes.infos.position === parseInt($scope.search.status, 10); return depute.infos.position === parseInt($scope.search.status, 10);
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment