This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository coselmar. See http://git.codelutin.com/coselmar.git commit be95151fe632e2a4696255a27e18b859ac148b3a Author: Yannick Martel <martel@©odelutin.com> Date: Wed Jan 13 14:44:55 2016 +0100 fixes #7867 fix links creation with several --- coselmar-ui/src/main/webapp/js/coselmar-controllers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coselmar-ui/src/main/webapp/js/coselmar-controllers.js b/coselmar-ui/src/main/webapp/js/coselmar-controllers.js index 30052da..6812755 100644 --- a/coselmar-ui/src/main/webapp/js/coselmar-controllers.js +++ b/coselmar-ui/src/main/webapp/js/coselmar-controllers.js @@ -1436,7 +1436,7 @@ coselmarControllers.controller("QuestionCtrl", ['$scope', '$route', '$routeParam modalInstance.result.then(function (link) { var already = false; for (var i = 0; i < $scope.question.links.length; i++) { - if ($scope.question.links[i].id == link.id) { + if (link.id && $scope.question.links[i].id == link.id) { already = true; $scope.question.links[i] = link; } @@ -1450,7 +1450,7 @@ coselmarControllers.controller("QuestionCtrl", ['$scope', '$route', '$routeParam $scope.removeLink = function(link) { var position = $scope.question.links.indexOf(link); if (link && position != -1) { - $scope.question.links.splice(link, 1); + $scope.question.links.splice(position, 1); } }; -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.