This is an automated email from the git hooks/post-receive script. New commit to branch feature/editVote in repository pollen. See http://git.chorem.org/pollen.git commit 9f703a72d36656247fdf9624f05dc796abbdae39 Author: Adrien Garandel <a.garandel@dralagen.fr> Date: Thu Jul 31 14:33:45 2014 +0200 fix doublons when edit vote and add choice --- pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js b/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js index 72d8ac9..7632638 100644 --- a/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js +++ b/pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js @@ -391,7 +391,9 @@ angular.module('pollControllers', ['ngRoute', 'pollenServices', 'pascalprecht.tr // add null in vote angular.forEach($scope.data.votants, function (voter) { + if (voter != $scope.data.vote) { voter.choice.push({choiceId: data.id, voteValue : $scope.getVoteValue(null)}); + } }); $rootScope.$broadcast('newSuccess', 'poll.saved'); -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.