From 7d467065a8fc790dd8d6248be3614c65377f63e7 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Fri, 20 Jun 2014 10:38:15 +0200 Subject: [PATCH] SONAR-5137 Use new immutable key for inheritance of quality profiles --- .../views/coding-rules-detail-quality-profile-view.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sonar-server/src/main/coffee/coding-rules/views/coding-rules-detail-quality-profile-view.coffee b/sonar-server/src/main/coffee/coding-rules/views/coding-rules-detail-quality-profile-view.coffee index 72acb69f14c..9cbf072772b 100644 --- a/sonar-server/src/main/coffee/coding-rules/views/coding-rules-detail-quality-profile-view.coffee +++ b/sonar-server/src/main/coffee/coding-rules/views/coding-rules-detail-quality-profile-view.coffee @@ -65,7 +65,8 @@ define [ getParent: -> return null unless @model.get('inherit') && @model.get('inherit') != 'NONE' - parentKey = @model.get('parent') + ':' + @model.get('lang') + myProfile = _.findWhere(@options.app.qualityProfiles, key: @model.get('qProfile')) + parentKey = myProfile.parentKey parent = _.extend {}, _.findWhere(@options.app.qualityProfiles, key: parentKey) parentActiveInfo = @model.collection.findWhere(qProfile: parentKey) or new Backbone.Model() _.extend parent, parentActiveInfo.toJSON() -- 2.39.5