Bug 1185042

Summary: Service Dialog tag control array values missing
Product: Red Hat CloudForms Management Engine Reporter: Tina Fitzgerald <tfitzger>
Component: AutomateAssignee: Shveta <sshveta>
Status: CLOSED ERRATA QA Contact: Dave Johnson <dajohnso>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.3.0CC: jhardy, obarenbo, psavage, sshveta, xlecauch
Target Milestone: GA   
Target Release: 5.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.4.0.0.11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
bz_monday 020215
Last Closed: 2015-06-16 12:48:25 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:
Embargoed:
Attachments:
Description Flags
Options value none

Description Tina Fitzgerald 2015-01-22 19:00:00 UTC
Description of problem:  
Multi-select tag_control values are not included in dialog information passed to automate.

Steps to Reproduce:
1. Create a service dialog that contains a tag_control of a multi-select tag classification.

2. Create a simple service and specify dialog created in step 1.

3. Order service, specifying multiple values for tag.

4. Examine the miq_request table entry for the specified request id.  
   The options hash contains the dialog values.

miq_request options example:
:dialog:
  Array::dialog_department: Classification::41
  Array::dialog_tag_0_location: Classification::3
  dialog_tag_0_test: fred_fred

I ordered the service and selected Accounting, Automotive, Communication, Defense Systems. Classification id is for Accounting. 

Value passed to automate:
Array::dialog_tag_0_department"=>"Classification::41"

Comment 2 Greg McCullough 2015-01-22 19:24:21 UTC
Dan - Can you have someone take a look at this?  The model code is expecting the value of the tag control to be set to a comma separated list of selected tag values.  I added a debug log line and the dialog value is a single tag ID for the control with multiple items selected.

Comment 3 Oleg Barenboim 2015-02-09 20:25:19 UTC
Pull Request https://github.com/ManageIQ/manageiq/pull/1622 created

Comment 4 Jozef Zigmund 2015-02-23 16:38:02 UTC
Bugfix in master:

commit b6a49ef20d5f06e40393d78057a1599a04417d61
Author: Jozef Zigmund <jzigmund>
Date:   Thu Feb 19 18:37:12 2015 +0100

    miq_ujs_bindings.js: Added recognition of multiple select for 'data-miq_observe'

Comment 6 Pete Savage 2015-04-15 17:33:44 UTC
Verified in 5.4.0.0.19

Comment 7 Shveta 2015-04-15 21:52:00 UTC
Created attachment 1014949 [details]
Options value

Fixed. Verified in  5.4.0.0.19.20150410165622_ad23806

Comment 9 errata-xmlrpc 2015-06-16 12:48:25 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://rhn.redhat.com/errata/RHBA-2015-1100.html