[Backport] Fix #4863: Now can delete tags on new issue lightbox

stable
Jesús Espino 2017-01-10 10:44:13 +01:00 committed by David Barragán Merino
parent 2d7597bbaf
commit 7d2a5e0e83
1 changed files with 2 additions and 2 deletions

View File

@ -106,11 +106,11 @@ CreateIssueDirective = ($repo, $confirm, $rootscope, lightboxService, $loading,
value = trim(tag[0].toLowerCase())
tags = $scope.project.tags
itemtags = _.clone($scope.us.tags)
itemtags = _.clone($scope.issue.tags)
_.remove itemtags, (tag) -> tag[0] == value
$scope.us.tags = itemtags
$scope.issue.tags = itemtags
_.pull($scope.issue.tags, value)