diff options
author | Go MAEDA <maeda@farend.jp> | 2020-06-20 06:50:28 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-06-20 06:50:28 +0000 |
commit | 925fbe92633a0484f04d06ec7cdaf7ca88f0c354 (patch) | |
tree | 981c425938faf16ad6f5795cad7d112dea85d4a5 /app/models/wiki.rb | |
parent | ba6ef9b5b6ea8ba13b24ec8df63b0ef19324f3d2 (diff) | |
download | redmine-925fbe92633a0484f04d06ec7cdaf7ca88f0c354.tar.gz redmine-925fbe92633a0484f04d06ec7cdaf7ca88f0c354.zip |
Ordering wiki pages should not be case sensitive (#31287).
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19831 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/wiki.rb')
-rw-r--r-- | app/models/wiki.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/wiki.rb b/app/models/wiki.rb index 1d98c2afd..8173fb212 100644 --- a/app/models/wiki.rb +++ b/app/models/wiki.rb @@ -20,7 +20,7 @@ class Wiki < ActiveRecord::Base include Redmine::SafeAttributes belongs_to :project - has_many :pages, lambda {order('title')}, :class_name => 'WikiPage', :dependent => :destroy + has_many :pages, lambda {order(Arel.sql('LOWER(title)').asc)}, :class_name => 'WikiPage', :dependent => :destroy has_many :redirects, :class_name => 'WikiRedirect' acts_as_watchable |