Browse Source

fixes #183: clear new ticket fields

Davide Alberani 7 years ago
parent
commit
405c92903c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      angular_app/js/controllers.js

+ 1 - 0
angular_app/js/controllers.js

@@ -634,6 +634,7 @@ eventManControllers.controller('EventTicketsCtrl', ['$scope', '$state', 'Event',
         };
 
         $scope.submitForm = function(dataModelSubmitted) {
+            $scope.ticket = {_id: $scope.ticket._id};
             angular.forEach(dataModelSubmitted, function(value, key) {
                 key = $scope.formFieldsMap[key] || key;
                 $scope.ticket[key] = value;