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
[FINE] Fix choose Provider reset bug #2301
Conversation
if (id) {
return;
} maybe? given the whole function body is under the condition and we love to limit nesting? |
app/views/cloud_subnet/new.html.haml
Outdated
@@ -11,10 +11,10 @@ | |||
options_for_select([["<#{_('Choose')}>", nil]] + @network_provider_choices.sort), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gildub I also recommend using -
options_for_select([["<#{_('Choose')}>", nil]] + @network_provider_choices.sort, disabled: ["<#{_('Choose')}>", nil]),
So that the user is forced to make a valid selection and cannot choose <Choose>
This change alone should help address the BZ, and you probably don't even need the other changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AparnaKarve, I was trying to align with the code on master branch but you're right that's better. Thanks
@martinpovolny, yes that sounds more solid, meanwhile for this BZ @AparnaKarve suggestion would do. Thanks |
@AparnaKarve Is this good to go? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simaishi Yes, this is good to go.
Thanks.
Oh no, there is a conflict now... @gildub please resolve the conflict. Thanks! |
This pull request is not mergeable. Please rebase and repush. |
@simaishi, conflict resolved. |
Checked commits https://github.com/gildub/manageiq-ui-classic/compare/9083d1e0d123d52880ac53499def5cb4586a197f~...714162f54997f2dcc33488b797acea9e2a28ff55 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
This PR introduces several bugs... the controller is using
should be
should be EDIT: fixed by #3254 |
Fixes unexpected error message while adding new Cloud Subnet:
https://bugzilla.redhat.com/show_bug.cgi?id=1490416