Bug 1677258

Summary: Boolean user input filter popup shows default field always as selected
Product: Red Hat CloudForms Management Engine Reporter: Matouš Mojžíš <mmojzis>
Component: UI - OPSAssignee: Martin Hradil <mhradil>
Status: CLOSED ERRATA QA Contact: Angelina Vasileva <anikifor>
Severity: low Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: low    
Version: 5.10.0CC: bmidwood, dmetzger, hkataria, lavenel, mhradil, mpovolny, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.18 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-12 13:35:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:

Description Matouš Mojžíš 2019-02-14 11:54:49 UTC
Description of problem:


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

How reproducible:
Always

Steps to Reproduce:
1. Create a filter with boolean user input.
2. Select that filter
3. Select True or False


Actual results:
Even when True or False is selected in that select bar "<Choose>" is displayed.
Logically is True or False selected as I can select "Apply" and filter is triggered correctly.

Expected results:


Additional info:

Comment 5 CFME Bot 2019-07-31 06:41:33 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/3c285dd167afb16022ea311d894666ad422c195d
commit 3c285dd167afb16022ea311d894666ad422c195d
Author:     Martin Hradil <mhradil>
AuthorDate: Tue Jul 30 09:52:07 2019 -0400
Commit:     Martin Hradil <mhradil>
CommitDate: Tue Jul 30 09:52:07 2019 -0400

    user_input_filter: Don't autofocus selects

    user input filter autofocuses the first input element,

    but pf-select hides the select element and creates its own div.
    That div never changes the text inside when chosing options, if the original select is focused.

    Making sure we don't autofocus select elements.

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1677258

 app/views/layouts/_user_input_filter.html.haml | 7 +-
 1 file changed, 4 insertions(+), 3 deletions(-)

Comment 6 CFME Bot 2019-07-31 17:56:58 UTC
New commit detected on ManageIQ/manageiq-ui-classic/ivanchuk:

https://github.com/ManageIQ/manageiq-ui-classic/commit/92b70ccf7541eb5fe486732a2ca8f61e94ee7b3c
commit 92b70ccf7541eb5fe486732a2ca8f61e94ee7b3c
Author:     Milan Zázrivec <mzazrivec>
AuthorDate: Wed Jul 31 02:40:45 2019 -0400
Commit:     Milan Zázrivec <mzazrivec>
CommitDate: Wed Jul 31 02:40:45 2019 -0400

    Merge pull request #5906 from himdel/user-input-docus

    user_input_filter: Don't autofocus selects

    (cherry picked from commit 00fa111f87a19d8c18c71831cb6341b3b77fb10c)

    https://bugzilla.redhat.com/show_bug.cgi?id=1677258

 app/views/layouts/_user_input_filter.html.haml | 7 +-
 1 file changed, 4 insertions(+), 3 deletions(-)

Comment 7 Matouš Mojžíš 2019-08-15 09:13:32 UTC
Verified in 5.11.0.18. Selected field is displayed as selected in user input.

Comment 9 errata-xmlrpc 2019-12-12 13:35:26 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://access.redhat.com/errata/RHBA-2019:4199