Skip to content

Commit

Permalink
Merge pull request ManageIQ#807 from chalettu/dynamic-dropdown-sort-fix
Browse files Browse the repository at this point in the history
[EUWE] Fixed issue caused by es6 syntax
  • Loading branch information
simaishi committed Jun 2, 2017
2 parents 12a2c92 + b435514 commit 5c1c2ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/app/services/dialog-field-refresh.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
var sortByValue = 0; // These are constants that are used to refer to array positions
var sortByDescription = 1; // These are constants that are used to refer to array positions
var sortBy = (dialogField.options.sort_by === 'value' ? sortByValue : sortByDescription);
dialogField.values = values.sort((option1, option2) => {
dialogField.values = values.sort(function(option1, option2) {
var trueValue = -1;
var falseValue = 1;
if (sortDirection !== 'ascending') {
Expand Down

0 comments on commit 5c1c2ea

Please sign in to comment.