diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-06 03:08:33 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-06 03:08:33 +0300 |
commit | 7895c44703bb097757bf2b71d119b6eec2b1ee2b (patch) | |
tree | 84faedc5288834bbbdd7a461d4b60b18588ec970 /app/models/work_items | |
parent | 6cdb39a9ef2d9a3008ce2b4aeb5dacb86e0a1c2b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/work_items')
-rw-r--r-- | app/models/work_items/type.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/work_items/type.rb b/app/models/work_items/type.rb index 080513b28e9..e2d38dc9903 100644 --- a/app/models/work_items/type.rb +++ b/app/models/work_items/type.rb @@ -37,7 +37,7 @@ module WorkItems validates :icon_name, length: { maximum: 255 } scope :default, -> { where(namespace: nil) } - scope :order_by_name_asc, -> { order('LOWER(name)') } + scope :order_by_name_asc, -> { order(arel_table[:name].lower.asc) } scope :by_type, ->(base_type) { where(base_type: base_type) } def self.default_by_type(type) |