From 937ac93f4d23638cedcec44629a571e06a14a6f3 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 16 Sep 2015 14:39:53 +0200 Subject: [PATCH] SONAR-6208 Sync rule activation between list and details --- .../apps/coding-rules/rule/rule-profiles-view.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js b/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js index b017aea8bcc..4c187693cf2 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js +++ b/server/sonar-web/src/main/js/apps/coding-rules/rule/rule-profiles-view.js @@ -67,13 +67,15 @@ define([ app: this.options.app }); activationView.on('profileActivated', function (severity, params, profile) { - var activation = { - severity: severity, - inherit: 'NONE', - params: params, - qProfile: profile - }; - that.model.set({ activation: activation }); + if (that.options.app.state.get('query').qprofile === profile) { + var activation = { + severity: severity, + inherit: 'NONE', + params: params, + qProfile: profile + }; + that.model.set({ activation: activation }); + } that.options.app.controller.showDetails(that.model); }); activationView.render(); -- 2.39.5