]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-10236 Cannot bulk activate/deactivate rules when using a web context
authorStas Vilchik <stas.vilchik@sonarsource.com>
Tue, 9 Jan 2018 08:53:03 +0000 (09:53 +0100)
committerStas Vilchik <stas.vilchik@sonarsource.com>
Wed, 10 Jan 2018 07:58:37 +0000 (08:58 +0100)
server/sonar-web/src/main/js/apps/coding-rules/bulk-change-modal-view.js

index 6db8f68038ed7dff0c1ee3cf00a87cb74ce2c77f..1708a0c68871616efa80aabc58b73172241979fb 100644 (file)
@@ -66,7 +66,7 @@ export default ModalFormView.extend({
 
   onFormSubmit() {
     ModalFormView.prototype.onFormSubmit.apply(this, arguments);
-    const url = `${window.baseUrl}/api/qualityprofiles/${this.options.action}_rules`;
+    const url = `/api/qualityprofiles/${this.options.action}_rules`;
     const options = { ...this.options.app.state.get('query'), wsAction: this.options.action };
     const profiles = this.$('#coding-rules-bulk-change-profile').val() || [this.options.param];
     this.ui.messagesContainer.empty();