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 a6d759680e264afd96d1dc1f3ab2dfbf1b6fcb2f Author: Yannick Martel <martel@©odelutin.com> Date: Fri Feb 13 10:56:51 2015 +0100 internal-test #6653 convert deadline Date as timestamp before update question with new status closed/adjourned/reopened --- coselmar-ui/src/main/webapp/js/coselmar-controllers.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/coselmar-ui/src/main/webapp/js/coselmar-controllers.js b/coselmar-ui/src/main/webapp/js/coselmar-controllers.js index 3a46673..e7f25e4 100644 --- a/coselmar-ui/src/main/webapp/js/coselmar-controllers.js +++ b/coselmar-ui/src/main/webapp/js/coselmar-controllers.js @@ -886,6 +886,12 @@ coselmarControllers.controller("QuestionCtrl", ['$scope', '$route', '$routeParam $scope.closeQuestion = function(){ $scope.question.status = "CLOSED"; + + // manage deadline which has been transform to Date for form matching + if (angular.isDate($scope.question.deadline)) { + $scope.question.deadline = $scope.question.deadline.getTime(); + } + questionsService.saveQuestion($scope.question, function() { $route.reload(); },function(error) { @@ -905,6 +911,12 @@ coselmarControllers.controller("QuestionCtrl", ['$scope', '$route', '$routeParam $scope.reopenQuestion = function(){ $scope.question.status = "IN_PROGRESS"; + + // manage deadline which has been transform to Date for form matching + if (angular.isDate($scope.question.deadline)) { + $scope.question.deadline = $scope.question.deadline.getTime(); + } + questionsService.saveQuestion($scope.question, function() { $route.reload(); },function(error) { @@ -916,6 +928,12 @@ coselmarControllers.controller("QuestionCtrl", ['$scope', '$route', '$routeParam $scope.adjournQuestion = function(){ $scope.question.status = "ADJOURNED"; + + // manage deadline which has been transform to Date for form matching + if (angular.isDate($scope.question.deadline)) { + $scope.question.deadline = $scope.question.deadline.getTime(); + } + questionsService.saveQuestion($scope.question, function() { $route.reload(); },function(error) { -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.