fixes #183: clear new ticket fields
This commit is contained in:
parent
d244694dc9
commit
405c92903c
1 changed files with 1 additions and 0 deletions
1
angular_app/js/controllers.js
vendored
1
angular_app/js/controllers.js
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue