branch develop updated (88af5bd -> be95151)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository coselmar. See http://git.codelutin.com/coselmar.git from 88af5bd remove some console log new be95151 fixes #7867 fix links creation with several 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 be95151fe632e2a4696255a27e18b859ac148b3a Author: Yannick Martel <martel@©odelutin.com> Date: Wed Jan 13 14:44:55 2016 +0100 fixes #7867 fix links creation with several Summary of changes: coselmar-ui/src/main/webapp/js/coselmar-controllers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
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>.
participants (1)
-
codelutin.com scm