Browse Source

backport of #7380 (#7383)

fix post parameter - on issue list - unset assignee

Signed-off-by: Michael Gnehr <michael@gnehr.de>
tags/v1.9.0-rc2
Cherrg 6 years ago committed by Lauris BH
parent
commit
f849766998
  1. 12
      public/js/index.js

12
public/js/index.js

@ -2104,12 +2104,16 @@ $(document).ready(function () {
}); });
$('.issue-action').click(function () { $('.issue-action').click(function () {
var action = this.dataset.action let action = this.dataset.action;
var elementId = this.dataset.elementId let elementId = this.dataset.elementId;
var issueIDs = $('.issue-checkbox').children('input:checked').map(function() { let issueIDs = $('.issue-checkbox').children('input:checked').map(function() {
return this.dataset.issueId; return this.dataset.issueId;
}).get().join(); }).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); updateIssuesMeta(url, action, issueIDs, elementId).then(reload);
}); });

Loading…
Cancel
Save