Actions
Patch #776
closedsort the journal of issues desc instead of asc
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
2008-03-03
Due date:
% Done:
0%
Estimated time:
Description
When displaying the journal of an issue, it is more pretty to have the last modifications first, instead of scrolling down the whole page.
Here is a simple modification to do :
diff -Naur trunk_6.3/app/controllers/issues_controller.rb eads_ver/app/controllers/issues_controller.rb --- trunk_6.3/app/controllers/issues_controller.rb 2007-12-18 19:17:40.000000000 +0100 +++ eads_ver/app/controllers/issues_controller.rb 2008-03-03 13:51:20.000000000 +0100 @@ -81,7 +81,7 @@ def show @custom_values = @issue.custom_values.find(:all, :include => :custom_field, :order => "#{CustomField.table_name}.position") - @journals = @issue.journals.find(:all, :include => [:user, :details], :order => "#{Journal.table_name}.created_on ASC") + @journals = @issue.journals.find(:all, :include => [:user, :details], :order => "#{Journal.table_name}.created_on DESC") @status_options = @issue.status.find_new_statuses_allowed_to(User.current.role_for_project(@project), @issue.tracker) respond_to do |format| format.html { render :template => 'issues/show.rhtml' }
Related issues
Actions