-
Notifications
You must be signed in to change notification settings - Fork 356
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
Check :sort_by: :none to keep the field values in the order that they are inserted in the file. #1248
Conversation
@@ -258,6 +258,8 @@ | |||
- opts = multiple ? [] : [["<#{_('None')}>", nil]] | |||
- if field_hash[:data_type] == :integer | |||
- opts += Array(field_hash[:values].invert).sort_by(&:last) | |||
- elsif field_hash[:sort_by] == :none |
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.
@lfu Wouldn't you want this to be the first check? Otherwise and integer field could never support a sort_by
value of :none
.
4f5bd47
to
d28172e
Compare
Checked commit lfu@d28172e with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 app/views/miq_request/_prov_field.html.haml
|
@miq-bot add_label bug, euwe/yes, fine/yes |
test failure is unrelated to changes in this PR. |
Euwe backport (to manageiq repo) details:
|
Check :sort_by: :none to keep the field values in the order that they are inserted in the file. (cherry picked from commit 662b026) https://bugzilla.redhat.com/show_bug.cgi?id=1458447
Fine backport details:
|
Part of #manageiq/14981.
https://bugzilla.redhat.com/show_bug.cgi?id=1389010