Bug 1326984

Summary: Multiple refresh buttons created in Service Catalog dialog
Product: Red Hat CloudForms Management Engine Reporter: Shane Boulden <sboulden>
Component: UI - OPSAssignee: Dan Clarizio <dclarizi>
Status: CLOSED DUPLICATE QA Contact: Niyaz Akhtar Ansari <nansari>
Severity: low Docs Contact:
Priority: unspecified    
Version: 5.5.0CC: hkataria, jhardy, mpovolny, nansari, obarenbo
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-14 13:20:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Screenshot of Service Catalog UI none

Description Shane Boulden 2016-04-14 01:10:43 UTC
Created attachment 1147012 [details]
Screenshot of Service Catalog UI

Description of problem:
The Cloudforms Web UI displays multiple refresh buttons when a refresh button is added to the dialog, and a dynamic drop-down item is selected. 

Version-Release number of selected component (if applicable): CFME 5.5.2.4

How reproducible:
Create a service dialog with two dynamic drop-down lists. One of these lists (example2) should be dependent on the other (example1), and have a manual refresh button added (example2).

Point the entry-point for dynamic drop-down list example2 to an instance which will call the following code to list entries:

dialog_hash = {}
if $evm.root['dialog_example1']
  example_obj = $evm.vmdb(:example).find_by_id($evm.root['dialog_example1'])
  dialog_hash[someobject.id] = "#{example_obj.name}"
end

When the example1 dialog element is changed, the refresh for dialog example2 is selected, and an item for the example2 dialog element is selected, the UI will add additional refresh buttons, per the screenshot. This occurs each time a dialog element is selected for the example2 dialog.

Actual results:
The UI adds additional refresh buttons to the dialog when elements from the second dialog box are selected.

Expected results:
The UI should not add additional refresh buttons.

Additional info:
Code listed above is only indicative of the issue - accurate code examples can be provided on request.

Comment 2 Harpreet Kataria 2016-04-14 13:20:13 UTC

*** This bug has been marked as a duplicate of bug 1311291 ***