Skip to content

Commit

Permalink
Fix filter sorting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sineed committed Mar 29, 2017
1 parent 37535fb commit 4d172ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ex_admin/themes/admin_lte2/filter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ defmodule ExAdmin.Theme.AdminLte2.Filter do
id = "q_#{owner_key}"
name_label = field_label(name, defn)
repo = Application.get_env :ex_admin, :repo
name_field = ExAdmin.Helpers.get_name_field(defn.resource_model)
name_field = ExAdmin.Helpers.get_name_field(assoc)
resources = if is_nil(name_field) do
repo.all(assoc)
else
Expand Down

0 comments on commit 4d172ac

Please sign in to comment.