From 405c92903cbb8011343713b3f827cfd4f8c70a4d Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Sun, 7 May 2017 14:58:18 +0200 Subject: [PATCH] fixes #183: clear new ticket fields --- angular_app/js/controllers.js | 1 + 1 file changed, 1 insertion(+) diff --git a/angular_app/js/controllers.js b/angular_app/js/controllers.js index 5906daf..a58e65f 100644 --- a/angular_app/js/controllers.js +++ b/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;