Skip to content

Commit

Permalink
Merge pull request ManageIQ#1042 from eclarizio/BZ1435758
Browse files Browse the repository at this point in the history
Fix for inability to edit/add service dialog imported from CF 4.0 to 4.2
(cherry picked from commit 3469910)

https://bugzilla.redhat.com/show_bug.cgi?id=1443670
  • Loading branch information
mzazrivec authored and simaishi committed Apr 19, 2017
1 parent 9f705f7 commit 45711be
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions app/views/miq_ae_customization/_dialog_sample.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,7 @@

- else
- if field.values.length > 1
- if field.sort_by.to_s != "none"
- if field.data_type == "integer"
- val = field.values.sort_by { |d| field.sort_by == :value ? d.first.to_i : d.last.to_i }
- val = val.reverse if field.sort_order == :descending
- else
- val = field.values.sort_by { |d| field.sort_by == :value ? d.first : d.last }
- val = val.reverse if field.sort_order == :descending
- else
- val = copy_array(field.values)
- val = copy_array(field.values)

- if field.type == "DialogFieldDropDownList"
- if field.required
Expand Down

0 comments on commit 45711be

Please sign in to comment.