From 151892c3131a22ec7786362d79a207c30851fe5f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 9 Nov 2015 18:01:04 +0000 Subject: Fixed that Project.uniq.visible errors under certain conditions (#21182). Patch by Redmine CRM. git-svn-id: http://svn.redmine.org/redmine/trunk@14857 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/principal.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/models/principal.rb') diff --git a/app/models/principal.rb b/app/models/principal.rb index c7addd9df..f3c883532 100644 --- a/app/models/principal.rb +++ b/app/models/principal.rb @@ -28,8 +28,7 @@ class Principal < ActiveRecord::Base has_many :memberships, lambda {preload(:project, :roles). joins(:project). - where("#{Project.table_name}.status<>#{Project::STATUS_ARCHIVED}"). - order("#{Project.table_name}.name")}, + where("#{Project.table_name}.status<>#{Project::STATUS_ARCHIVED}")}, :class_name => 'Member', :foreign_key => 'user_id' has_many :projects, :through => :memberships -- cgit v1.2.3 Mirror of redmine code source: https://github.com/redmine/redminewww-data
summaryrefslogtreecommitdiffstats
path: root/Rakefile
blob: 5fbdf84ca155f8f2512d242635be261f3892ecab (plain)
1
2
3
4
5
6
7