Skip to content

Commit

Permalink
#204 Fix a regression related to the introduction of _type field
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed May 16, 2017
1 parent 87f4627 commit d8d10f7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ui/app/scripts/controllers/admin/AdminCaseTemplatesCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@
};

$scope.createTemplate = function() {
console.log("Create Template: " + $scope.template.name);
return TemplateSrv.save($scope.template, function() {
$scope.getList(0);

Expand All @@ -152,10 +151,9 @@
};

$scope.updateTemplate = function() {
console.log("Update Template: " + $scope.template.name);
return TemplateSrv.update({
templateId: $scope.template.id
}, _.omit($scope.template, ['id', 'user', 'type']), function() {
}, _.omit($scope.template, ['id', 'user', '_type']), function() {
$scope.getList($scope.templateIndex);

$scope.$emit('templates:refresh');
Expand Down

0 comments on commit d8d10f7

Please sign in to comment.