]> 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 <vilchiks@gmail.com>
Wed, 10 Jan 2018 07:59:13 +0000 (08:59 +0100)
server/sonar-web/src/main/js/apps/coding-rules/bulk-change-modal-view.js

index 31de119d09f586b30b6c1a9bc190c0e4f2c2463b..f9e5e728665e71f11683f3dc2f7a000decc6e6db 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();