Skip to content
Snippets Groups Projects
Commit d2fc7ed0 authored by Cam Saül's avatar Cam Saül
Browse files

Merge pull request #410 from metabase/sort_fk_targets_in_metadata_edit

:hear_no_evil: sort list of target fields for FK selection in admin metadata edit :heart_eyes:
parents 593e70d6 6dce4a93
No related branches found
No related tags found
No related merge requests found
......@@ -130,8 +130,8 @@
[id]
(read-check Database id)
(let [table_ids (sel :many :id Table :db_id id :active true)]
(-> (sel :many Field :table_id [in table_ids] :special_type "id")
(hydrate :table))))
(sort-by #(:name (:table %)) (-> (sel :many Field :table_id [in table_ids] :special_type "id")
(hydrate :table)))))
(defendpoint POST "/:id/sync"
"Update the metadata for this `Database`."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment