Skip to content

Commit

Permalink
backport of #7380 (#7383)
Browse files Browse the repository at this point in the history
fix post parameter - on issue list - unset assignee

Signed-off-by: Michael Gnehr <[email protected]>
  • Loading branch information
Cherrg authored and lafriks committed Jul 8, 2019
1 parent f481867 commit f849766
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2104,12 +2104,16 @@ $(document).ready(function () {
});

$('.issue-action').click(function () {
var action = this.dataset.action
var elementId = this.dataset.elementId
var issueIDs = $('.issue-checkbox').children('input:checked').map(function() {
let action = this.dataset.action;
let elementId = this.dataset.elementId;
let issueIDs = $('.issue-checkbox').children('input:checked').map(function() {
return this.dataset.issueId;
}).get().join();
var url = this.dataset.url
let url = this.dataset.url;
if (elementId === '0' && url.substr(-9) === '/assignee'){
elementId = '';
action = 'clear';
}
updateIssuesMeta(url, action, issueIDs, elementId).then(reload);
});

Expand Down

0 comments on commit f849766

Please sign in to comment.