修正路线图各版本排列问题

This commit is contained in:
zhangyang 2013-08-06 10:53:17 +08:00
parent d086162854
commit d7ba950851
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class VersionsController < ApplicationController
@versions = @project.shared_versions || [] @versions = @project.shared_versions || []
@versions += @project.rolled_up_versions.visible if @with_subprojects @versions += @project.rolled_up_versions.visible if @with_subprojects
#added by young #added by young
@versions = @versions.uniq.sort @versions = @versions.uniq.reverse#Modified by young
@offset, @limit = api_offset_and_limit({:limit => 4}) @offset, @limit = api_offset_and_limit({:limit => 4})
@versions_count = @versions.count @versions_count = @versions.count
@versions_pages = Paginator.new @versions_count, @limit, params['page'] @versions_pages = Paginator.new @versions_count, @limit, params['page']