Closed (fixed)
Project:
Rules
Version:
7.x-2.x-dev
Component:
User Interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2014 at 12:10 UTC
Updated:
5 Feb 2020 at 03:20 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #1
tr commentedWhen editing a reaction rule or a rules component, Rules shows a summary of the rule's events, conditions, and actions. This summary may be found at (for example):
admin/config/workflow/rules/reaction/manage/3 for reaction rule number 3
admin/config/workflow/rules/components/manage/7 for component number 7
In this summary, the context variables and their values are displayed so that the Rule can be examined and understood without having to drill down into each event/condition/component to see what the values are.
But this summary currently hides the value of a context parameter if the parameter is declared to have a default value and the parameter value is equal to the default value. This is true of all context parameters with default values, in all conditions and actions.
This feature was added in c5a6e631e back in 2010. I assume the reason was to save some screen space, since there is limited room to display all this information. This commit wasn't connected to an issue, so there is no discussion attached to it.
In general, I think it's a bad idea to hide this information. This issue shows one reason why - we don't always know what the default value is, so how can we understand what the rule is doing? I think it is better to show it in all cases.
Here's a patch.
Comment #2
tr commentedRe-rolled #1 against current HEAD to remove fuzz. No functional changes.
Comment #4
tr commentedCommitted.