Bug 1553836

Summary: Visibility expression does not evaluated correctly on custom buttons for Generic Object
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ApplianceAssignee: Yuri Rudman <yrudman>
Status: CLOSED ERRATA QA Contact: Yadnyawalk Tale <ytale>
Severity: medium Docs Contact:
Priority: high    
Version: 5.9.0CC: abellott, cpelland, obarenbo
Target Milestone: GAKeywords: ZStream
Target Release: 5.9.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: custom_button
Fixed In Version: 5.9.2.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1553767 Environment:
Last Closed: 2018-05-07 20:46:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1553767    
Bug Blocks:    

Comment 2 CFME Bot 2018-03-09 16:36:22 UTC
New commit detected on ManageIQ/manageiq/gaprindashvili:

https://github.com/ManageIQ/manageiq/commit/87c54f142f371811366eea13d351b4bdd0d91b1b
commit 87c54f142f371811366eea13d351b4bdd0d91b1b
Author:     Oleg Barenboim <chessbyte>
AuthorDate: Tue Jan 23 11:48:32 2018 -0500
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Tue Jan 23 11:48:32 2018 -0500

    Merge pull request #16858 from yrudman/fixed-expression-evaluation-for-generic-object

    Pass target object when evaluating expression for Generic Object
    (cherry picked from commit 20c5a8446f35935d9bf28afb5bf8c3b237a76077)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1553836

 app/models/generic_object.rb | 9 +-
 spec/models/generic_object_definition_spec.rb | 58 +
 spec/models/generic_object_spec.rb | 19 +
 3 files changed, 85 insertions(+), 1 deletion(-)

Comment 6 errata-xmlrpc 2018-05-07 20:46:05 UTC
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.

https://access.redhat.com/errata/RHSA-2018:1328