Fix #4032: /tag_aliases page is broken.

This commit is contained in:
evazion
2019-01-02 15:55:24 -06:00
parent f78ff57884
commit 82b09860f2

View File

@@ -87,7 +87,7 @@ class TagRelationship < ApplicationRecord
def pending_first
# unknown statuses return null and are sorted first
order(Arel.sql("array_position(array['queued', 'processing', 'pending', 'active', 'deleted', 'retired'], status) NULLS FIRST, antecedent_name, consequent_name"))
order(Arel.sql("array_position(array['queued', 'processing', 'pending', 'active', 'deleted', 'retired'], status::text) NULLS FIRST, antecedent_name, consequent_name"))
end
def default_order