<%
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
+ %>
<img src="<%= ApplicationController.root_context -%>/images/overrides.png" alt="Overrides parent definition" title="<%= message('rules_configuration.overrides_parent_definition') -%>" style="vertical-align: middle"/>
<span class="form-val-note" style="font-weight: bold; vertical-align: middle;">
- <%= message('rules_configuration.original_value') -%>: <%= ancestor_value -%>
+ <%= message('rules_configuration.original_value') -%>: <%= ancestor_value.blank? ? '(' + message('rules_configuration.parent_parameter.empty') + ')' : ancestor_value -%>
</span>
<%
end