Bug 1342260

Summary: Provision dialogs copies previously checked dialog and not selected dialog
Product: Red Hat CloudForms Management Engine Reporter: Matouš Mojžíš <mmojzis>
Component: UI - OPSAssignee: Jozef Zigmund <jzigmund>
Status: CLOSED CURRENTRELEASE QA Contact: Matouš Mojžíš <mmojzis>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: hkataria, jhardy, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui:automate
Fixed In Version: 5.7.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1372773 (view as bug list) Environment:
Last Closed: 2017-01-11 20:15:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1372773    
Attachments:
Description Flags
I tried to copy microsoft dialog, but I had checked before another four dialogs, where in alphanumerical sort was openstack first none

Description Matouš Mojžíš 2016-06-02 19:22:49 UTC
Created attachment 1164158 [details]
I tried to copy microsoft dialog, but I had checked before another four dialogs, where in alphanumerical sort was openstack first

Description of problem:
When I check some dialogs and then select another dialog(by that I mean click on icon or text in tree view) and then try to copy it it copies first in alphanumerical number checked dialog.

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

How reproducible:
Always

Steps to Reproduce:
1. Automate -> Customization ->  Check checkboxes for at least one dialog
2. Select another dialog
3. Configuration -> Copy this dialog

Actual results:
Copies the first dialog in alphanumerical sort and not the selected dialog

Expected results:
Copies selected dialog

Additional info:
screenshot attached

Comment 3 CFME Bot 2016-07-11 16:06:53 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/7fb9da45aa7d234a3d3a3924d7046a037d72a010

commit 7fb9da45aa7d234a3d3a3924d7046a037d72a010
Author:     Jozef Zigmund <jzigmund>
AuthorDate: Tue Jun 21 16:08:27 2016 +0200
Commit:     Jozef Zigmund <jzigmund>
CommitDate: Fri Jul 1 17:17:48 2016 +0200

    Fix provision dialogs copying
    
    When user checked the provision dialog in the list and then selected other one
    in the tree and called the copy of the dialog from explorer screen,
    it copied wrong one (1st checked checkbox)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1342260

 app/controllers/miq_ae_customization_controller/old_dialogs.rb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Comment 4 Satoe Imaishi 2016-09-02 15:24:33 UTC
The PR is 'darga/backported', adding cfme-5.6.z flag.

Comment 6 Matouš Mojžíš 2016-09-30 14:55:22 UTC
Verified in 5.7.0.3. Only selected dialog is copied.