Created attachment 1238090 [details]
Shows the same action selected twice
Description of problem:
When creating a control or compliance policy, the icon for a given action can have two states:
- Green check mark when the action has been chosen for Order of 'Actions if ALL Conditions are True'
- Red mark when the action has been chosen for 'Order of Actions if ANY Conditions are False'
However, if the same action is selected to the two evaluation (i.e. in the two frames), the icon for one of the two states is the wrong one
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a control policy
2. Define an event, such as "VM Power On"
3. Edit the actions for the policy event and choose the same action for the two frames
The action icon will be the same
The action icon part of the 'Order of Actions if ALL Conditions are True' should display a green check mark
The action icon part of the 'Order of Actions if ANY Conditions are False' should display a red cross.
*** Bug 1412986 has been marked as a duplicate of this bug. ***
New commit detected on ManageIQ/manageiq-ui-classic/master:
Author: Jozef Zigmund <email@example.com>
AuthorDate: Tue Mar 21 17:20:46 2017 +0100
Commit: Jozef Zigmund <firstname.lastname@example.org>
CommitDate: Wed Mar 22 11:26:32 2017 +0100
Fix actions' icons of policy events
app/presenters/tree_builder_policy.rb | 10 ++++++++++
app/presenters/tree_node/miq_action.rb | 18 +++++++-----------
2 files changed, 17 insertions(+), 11 deletions(-)
Verified in 18.104.22.168-alpha1.20170328221054_e6ca7a2.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.