Bug 1185042 - Service Dialog tag control array values missing
Summary: Service Dialog tag control array values missing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.4.0
Assignee: Shveta
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-22 19:00 UTC by Tina Fitzgerald
Modified: 2015-06-16 12:48 UTC (History)
5 users (show)

Fixed In Version: 5.4.0.0.11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
bz_monday 020215
Last Closed: 2015-06-16 12:48:25 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Options value (67.68 KB, image/png)
2015-04-15 21:52 UTC, Shveta
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1100 0 normal SHIPPED_LIVE CFME 5.4.0 bug fixes, and enhancement update 2015-06-16 16:28:42 UTC

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


Note You need to log in before you can comment on or make changes to this bug.