Description of problem: Visibility expression for custom buttons on Generic Object does not evaluate correctly How reproducible: 100% Steps to Reproduce: 1. Create Generic Object Definition with name "ObjectDefinition": Automation-> Automate->Generic Object->Configuration->Add New Generic Object Class 2. Create Custom Action for Generic Object with visibility expression: Automation->Automate->Customization->Generic Object ->[Unassigned Buttons]->Add New Button. Visibility Expression: Generic Object : Name = "MyObject" 3. In Rails console create Generic Object and get list of buttons for that object: > obj_def = GenericObjectDefinition.where(:name => "ObjectDefinition").last > obj = GenericObject.create(:generic_object_definition => obj_def, :name => "MyObject") > actions = obj.custom_actions[:buttons] Actual results: actions is empty array Expected results: actions should have custom button created in step 2
PR: https://github.com/ManageIQ/manageiq/pull/16858
Fixed and verified in 5.10.0.28.20181204160308_aa3b074