diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-08-18 15:39:55 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-08-18 15:39:55 +0200 |
commit | 4c358f8ee89cddc977c8f1d9329c5ae22a0475c9 (patch) | |
tree | 83137c82828e93c66ad0bf52f6de98c4626ff0c9 /server/sonar-web/src/main/js/apps/coding-rules | |
parent | 819ba82fd02fb62d034e27d727272bb2df9ace8e (diff) | |
download | sonarqube-4c358f8ee89cddc977c8f1d9329c5ae22a0475c9.tar.gz sonarqube-4c358f8ee89cddc977c8f1d9329c5ae22a0475c9.zip |
fix SONAR-6657 Cannot deactivate just activated rule
Diffstat (limited to 'server/sonar-web/src/main/js/apps/coding-rules')
-rw-r--r-- | server/sonar-web/src/main/js/apps/coding-rules/rule/profile-activation-view.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/coding-rules/workspace-list-item-view.js | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/rule/profile-activation-view.js b/server/sonar-web/src/main/js/apps/coding-rules/rule/profile-activation-view.js index a310ce97674..87296ca2e0f 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/rule/profile-activation-view.js +++ b/server/sonar-web/src/main/js/apps/coding-rules/rule/profile-activation-view.js @@ -112,7 +112,7 @@ define([ } }).done(function () { that.destroy(); - that.trigger('profileActivated', severity, params); + that.trigger('profileActivated', severity, params, profileKey); }).fail(function (jqXHR) { that.enableForm(); that.showErrors(jqXHR.responseJSON.errors, jqXHR.responseJSON.warnings); diff --git a/server/sonar-web/src/main/js/apps/coding-rules/workspace-list-item-view.js b/server/sonar-web/src/main/js/apps/coding-rules/workspace-list-item-view.js index b18ba7b52e1..1041a326de9 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/workspace-list-item-view.js +++ b/server/sonar-web/src/main/js/apps/coding-rules/workspace-list-item-view.js @@ -62,10 +62,12 @@ define([ collection: new Backbone.Collection(othersQualityProfiles), app: this.options.app }); - activationView.on('profileActivated', function (severity) { + activationView.on('profileActivated', function (severity, params, profile) { var activation = { severity: severity, - inherit: 'NONE' + inherit: 'NONE', + params: params, + qProfile: profile }; that.model.set({ activation: activation }); }); |