fix order_by_name

pull/8915/head
ulferts 4 years ago committed by Oliver Günther
parent b52b0d87ac
commit c638b0d8dc
  1. 2
      app/models/principal.rb

@ -105,7 +105,7 @@ class Principal < ApplicationRecord
end
def self.order_by_name
order(User::USER_FORMATS_STRUCTURE[Setting.user_format].map(&:to_s))
order(User::USER_FORMATS_STRUCTURE[Setting.user_format].map { |format| "#{Principal.table_name}.#{format}" })
end
def self.me

Loading…
Cancel
Save