缺陷最新显示最上面

代码优化
This commit is contained in:
huang 2015-04-15 00:40:25 +08:00
parent e0695fa51d
commit 4acad8088e
2 changed files with 2 additions and 2 deletions

View File

@ -310,7 +310,7 @@ class IssueQuery < Query
:order => options[:order],
:limit => options[:limit],
:offset => options[:offset]
)
).reverse
rescue ::ActiveRecord::StatementInvalid => e
raise StatementInvalid.new(e.message)
end

View File

@ -1,5 +1,5 @@
<% reply_links = authorize_for('issues', 'edit') -%>
<% for journal in journals %>
<% journals.reverse.each do |journal| %>
<!-- modified by bai -->
<div id="change-<%= journal.id %>" class="<%= journal.css_classes %>" style=" word-wrap: break-word; word-break: break-all">
<!-- end -->