Project

General

Profile

Defect #35872 » 35872-attendee-ordering-patch.diff

Osman Yozgatlioglu, 2021-09-13 11:10

View differences:

app/helpers/application_helper.rb (working copy)
574 574
      s << content_tag('option', "<< #{l(:label_me)} >>", :value => User.current.id)
575 575
    end
576 576
    groups = +''
577
    collection.sort.each do |element|
577
    collection.sort_by{|user|}.each do |element|
578 578
      selected_attribute = ' selected="selected"' if option_value_selected?(element, selected) || element.id.to_s == selected
579 579
      (element.is_a?(Group) ? groups : s) << %(<option value="#{element.id}"#{selected_attribute}>#{h element.name}</option>)
580 580
    end
app/models/issue.rb (working copy)
948 948
    if assigned_to_id_was.present? && assignee = Principal.find_by_id(assigned_to_id_was)
949 949
      users << assignee
950 950
    end
951
    users.uniq.sort
951
    users.uniq.sort_by{|user|}
952 952
  end
953 953

  
954 954
  # Versions that the issue can be assigned to
(3-3/3)