From e0b45cc17db9d5d17a8c98b6558656fa55466391 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Thu, 9 Feb 2012 11:02:47 +0100 Subject: [PATCH] SONAR-2124 Fix display bug --- .../app/views/rules_configuration/_rule_param.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule_param.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule_param.html.erb index ce6f11f42f4..806e15df641 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule_param.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule_param.html.erb @@ -37,13 +37,13 @@ <% if active_rule && active_rule.overrides? && ancestor_active_rule ancestor_param = ancestor_active_rule.active_param_by_param_id(parameter.id) - ancestor_value = ancestor_param && ancestor_param.value ? ancestor_param.value : '(' + message('rules_configuration.parent_parameter.empty') + ')' + ancestor_value = ancestor_param && ancestor_param.value ? ancestor_param.value : '' - if ancestor_value && ancestor_value != param_value - %> + if ancestor_value != param_value + %> Overrides parent definition - <%= message('rules_configuration.original_value') -%>: <%= ancestor_value -%> + <%= message('rules_configuration.original_value') -%>: <%= ancestor_value.blank? ? '(' + message('rules_configuration.parent_parameter.empty') + ')' : ancestor_value -%> <% end -- 2.39.5