[pollen] branch feature/editVote updated (0778ebc -> 9f703a7)
This is an automated email from the git hooks/post-receive script. New change to branch feature/editVote in repository pollen. See http://git.chorem.org/pollen.git from 0778ebc add message with url for clone poll and change order alert new 9f703a7 fix doublons when edit vote and add choice The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: 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 Summary of changes: pollen-ui-angular/src/main/webapp/js/controllers/pollCtrl.js | 2 ++ 1 file changed, 2 insertions(+) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
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>.
participants (1)
-
chorem.org scm