Skip to content

Commit f849766

Browse files
Cherrglafriks
authored andcommitted
backport of #7380 (#7383)
fix post parameter - on issue list - unset assignee Signed-off-by: Michael Gnehr <[email protected]>
1 parent f481867 commit f849766

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

public/js/index.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -2104,12 +2104,16 @@ $(document).ready(function () {
21042104
});
21052105

21062106
$('.issue-action').click(function () {
2107-
var action = this.dataset.action
2108-
var elementId = this.dataset.elementId
2109-
var issueIDs = $('.issue-checkbox').children('input:checked').map(function() {
2107+
let action = this.dataset.action;
2108+
let elementId = this.dataset.elementId;
2109+
let issueIDs = $('.issue-checkbox').children('input:checked').map(function() {
21102110
return this.dataset.issueId;
21112111
}).get().join();
2112-
var url = this.dataset.url
2112+
let url = this.dataset.url;
2113+
if (elementId === '0' && url.substr(-9) === '/assignee'){
2114+
elementId = '';
2115+
action = 'clear';
2116+
}
21132117
updateIssuesMeta(url, action, issueIDs, elementId).then(reload);
21142118
});
21152119

0 commit comments

Comments
 (0)