summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-29 08:55:37 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-29 08:55:37 +0000
commit22c9a438993ba365d2d66d32bd87941b512f4b1a (patch)
treeff4a098b2c20fbd208fc0dd404a8aa8f5012450b
parentfa88a592fd19f28b0b2ed0da0b2ee3dd5aba1d4e (diff)
downloadredmine-22c9a438993ba365d2d66d32bd87941b512f4b1a.tar.gz
redmine-22c9a438993ba365d2d66d32bd87941b512f4b1a.zip
Fixed: associated revisions are displayed in wrong order on issue view (#1546).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1596 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/models/issue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 326e234b0..b19e64883 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -28,7 +28,7 @@ class Issue < ActiveRecord::Base
has_many :journals, :as => :journalized, :dependent => :destroy
has_many :attachments, :as => :container, :dependent => :destroy
has_many :time_entries, :dependent => :delete_all
- has_and_belongs_to_many :changesets, :order => "revision ASC"
+ has_and_belongs_to_many :changesets, :order => "#{Changeset.table_name}.committed_on ASC, #{Changeset.table_name}.id ASC"
has_many :relations_from, :class_name => 'IssueRelation', :foreign_key => 'issue_from_id', :dependent => :delete_all
has_many :relations_to, :class_name => 'IssueRelation', :foreign_key => 'issue_to_id', :dependent => :delete_all