Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure 'null' default values do not get coerced into 'NaN' for integer type drop downs #272

Merged
merged 1 commit into from
Mar 21, 2018

Conversation

eclarizio
Copy link
Member

@AllenBW can probably give a bit more context on this, but basically if you do not set a default value for an integer based drop down, it will default to null. Well, this gets converted into "NaN", which does not match null as a default value and therefore doesn't end up actually selecting the first value which should be "<None>" but instead just shows "Nothing Selected".

Before, the string drop downs work fine with no default, and the integer ones have the "Nothing Selected" text:
screen shot 2018-03-20 at 2 48 30 pm

After, all of them behave the same:
screen shot 2018-03-20 at 2 48 42 pm

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

@chalettu Can you please review?

@miq-bot assign @himdel

I'm not tracking the BZ quite as closely as @AllenBW, so Allen, if I got the wrong labels please correct me 👍

@miq-bot add_label gaprindashvili/yes, bug, blocker

@miq-bot
Copy link
Member

miq-bot commented Mar 20, 2018

Checked commit eclarizio@5c82d8f with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. 🍪

Copy link
Member

@AllenBW AllenBW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Labels are spot on 👍

@dclarizio
Copy link

Merging on @himdel's behalf since he is on PTO.

@dclarizio dclarizio merged commit 50c0344 into ManageIQ:master Mar 21, 2018
@dclarizio dclarizio added this to the Sprint 82 Ending Mar 26, 2018 milestone Mar 21, 2018
martinpovolny pushed a commit that referenced this pull request Mar 21, 2018
Ensure 'null' default values do not get coerced into 'NaN' for integer type drop downs

(cherry picked from commit 50c0344)
@chalettu
Copy link
Contributor

Changes look good.

@himdel
Copy link
Contributor

himdel commented Mar 29, 2018

(Released in 1.0.20, and 1.1.10)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants