Bug 1390966

Summary: Service dialog editor drop down list Refresh problem
Product: Red Hat CloudForms Management Engine Reporter: Bruno Gillet <bgillet>
Component: UI - OPSAssignee: Dávid Halász <dhalasz>
Status: CLOSED CURRENTRELEASE QA Contact: Shveta <sshveta>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.7.0CC: bgillet, cpelland, hkataria, jhardy, mpovolny, obarenbo
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard: service:dialog
Fixed In Version: 5.8.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1395840 (view as bug list) Environment:
Last Closed: 2017-06-12 16:14:00 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: 1395840    
Attachments:
Description Flags
cfme default value drop down list duplicate example in service dialog editor. none

Description Bruno Gillet 2016-11-02 10:13:07 UTC
Created attachment 1216458 [details]
cfme default value drop down list duplicate example in service dialog editor.

Description of problem:
 When editing a static drop down list, each time an entry is added or removed  the default value drop down list is duplicated in editor with the new values rather than updating it. Same occur when an entry is destroyed or modified.
Attached is a snapshot after some entries add/delete/modification actions.

Version-Release number of selected component (if applicable):
5.7.0.7-beta1.20161025153249_9376fbd

How reproducible: 
Always

Steps to Reproduce:
1.Create a new service dialog, a tab, a box.
2.Add a static drop down list element and add items. Each added item creates a duplicate default value drop down list.
3.Try removing, adding or modifying and duplicates will occur

Actual results: 
Duplication of default value drop down list.


Expected results:
Refresh of items list in existing drop down list.

Additional info:

Comment 2 Harpreet Kataria 2016-11-02 19:42:31 UTC
David,

Similar issue in the same area of code was fixed for https://bugzilla.redhat.com/show_bug.cgi?id=1274665 not sure how this broke again. Can you please look into this.

Thanks,
~Harpreet

Comment 4 CFME Bot 2016-11-16 16:06:23 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/9065184a71cb0b0f7df6c8b1687a028310f87fc1

commit 9065184a71cb0b0f7df6c8b1687a028310f87fc1
Author:     Dávid Halász <dhalasz>
AuthorDate: Mon Nov 14 14:53:26 2016 +0100
Commit:     Dávid Halász <dhalasz>
CommitDate: Mon Nov 14 14:53:26 2016 +0100

    Destroy selectpicker when adding a new dropdown value in dialog editor
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1390966

 app/controllers/miq_ae_customization_controller/dialogs.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comment 6 Shveta 2017-03-13 04:45:39 UTC
Fixed in 5.8.0.4.20170307183144_745a3d9