aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2017-01-10 16:59:03 +0100
committerStas Vilchik <vilchiks@gmail.com>2017-01-10 16:59:03 +0100
commitb0ff5f224d41bdb89a4a42e5500ce4f830c7ab01 (patch)
treef3886c6c26ca0dbb66cb9d1628f4b47ee3c026dc /server
parent4addb8cb73b7a2413e865b96d4e7590c4ed85f0f (diff)
downloadsonarqube-b0ff5f224d41bdb89a4a42e5500ce4f830c7ab01.tar.gz
sonarqube-b0ff5f224d41bdb89a4a42e5500ce4f830c7ab01.zip
SONAR-8562 do not pass "actions" parameter to /api/issues/bulk_change
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/apps/issues/BulkChangeForm.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/BulkChangeForm.js b/server/sonar-web/src/main/js/apps/issues/BulkChangeForm.js
index 3ff21ded414..eb075e26f58 100644
--- a/server/sonar-web/src/main/js/apps/issues/BulkChangeForm.js
+++ b/server/sonar-web/src/main/js/apps/issues/BulkChangeForm.js
@@ -155,48 +155,40 @@ export default ModalForm.extend({
onFormSubmit () {
ModalForm.prototype.onFormSubmit.apply(this, arguments);
- const actions = [];
const query = {};
const assignee = this.$('#assignee').val();
if (this.$('#assign-action').is(':checked') && assignee != null) {
- actions.push('assign');
query['assign'] = assignee;
}
const type = this.$('#type').val();
if (this.$('#set-type-action').is(':checked') && type) {
- actions.push('set_type');
query['set_type'] = type;
}
const severity = this.$('#severity').val();
if (this.$('#set-severity-action').is(':checked') && severity) {
- actions.push('set_severity');
query['set_severity'] = severity;
}
const addedTags = this.$('#add_tags').val();
if (this.$('#add-tags-action').is(':checked') && addedTags) {
- actions.push('add_tags');
query['add_tags'] = addedTags;
}
const removedTags = this.$('#remove_tags').val();
if (this.$('#remove-tags-action').is(':checked') && removedTags) {
- actions.push('remove_tags');
query['remove_tags'] = removedTags;
}
const transition = this.$('[name="do_transition.transition"]:checked').val();
if (transition) {
- actions.push('do_transition');
query['do_transition'] = transition;
}
const comment = this.$('#comment').val();
if (comment) {
- actions.push('comment');
query['comment'] = comment;
}
@@ -209,7 +201,7 @@ export default ModalForm.extend({
this.showSpinner();
const issueKeys = this.issues.map(issue => issue.key);
- bulkChangeIssues(issueKeys, { ...query, actions: actions.join() }).then(
+ bulkChangeIssues(issueKeys, query).then(
() => {
this.destroy();
this.options.onChange();