Commit d8730865 authored by El-gitano's avatar El-gitano

Correction d'un bug logique mineur

parent e38641dd
......@@ -35,9 +35,6 @@ angular.module('panelAdminApp')
};
$scope.actionMaj = function(){
console.log($scope.match);
console.log(copieMatch);
var promises = [];
var idMatch = $scope.match.id;
......@@ -79,11 +76,8 @@ angular.module('panelAdminApp')
break;
}
}
if(changed || estModifie('dateFin')){
promises.push(apicall.changeEndMatch($scope.match.id, $scope.match.score, $scope.match.winner, $scope.match.endDate));
}
promises.push(apicall.changeEndMatch($scope.match.id, $scope.match.score, $scope.match.winner, $scope.match.endDate));
}
$q.all(promises).then(function(){
......
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