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 c5572fbea043e994fa8aa4c6df09566446837f4d Author: Yannick Martel <martel@©odelutin.com> Date: Mon Feb 16 14:06:36 2015 +0100 fix homepage when no user connected --- coselmar-ui/src/main/webapp/js/coselmar-controllers.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coselmar-ui/src/main/webapp/js/coselmar-controllers.js b/coselmar-ui/src/main/webapp/js/coselmar-controllers.js index 97a9ac7..76057ac 100644 --- a/coselmar-ui/src/main/webapp/js/coselmar-controllers.js +++ b/coselmar-ui/src/main/webapp/js/coselmar-controllers.js @@ -106,6 +106,8 @@ coselmarControllers.controller("unauthorizedCtrl", ['$scope', function ($scope) // Controller for home when user connected, load 5 last projects coselmarControllers.controller("homeConnectedCtrl", ['$scope', 'questionsService', function ($scope, questionsService) { + if ($scope.currentUser) { + var searchOptions = {'limit' : 5, 'page' : 0}; questionsService.getQuestions(searchOptions, function(questions) { @@ -113,6 +115,7 @@ coselmarControllers.controller("homeConnectedCtrl", ['$scope', 'questionsService }, function(fail) { $scope.questions = []; }); + } }]); -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.