RE: RedMine and Sql Server 2005 » OrderbyPatch1709.patch
| app/controllers/projects_controller.rb (working copy) | ||
|---|---|---|
| 205 | 205 |
|
| 206 | 206 |
# Show changelog for @project |
| 207 | 207 |
def changelog |
| 208 |
@trackers = @project.trackers.find(:all, :conditions => ["is_in_chlog=?", true], :order => 'position')
|
|
| 208 |
@trackers = @project.trackers.find(:all, :conditions => ["is_in_chlog=?", true]) |
|
| 209 | 209 |
retrieve_selected_tracker_ids(@trackers) |
| 210 | 210 |
@versions = @project.versions.sort |
| 211 | 211 |
end |
| app/controllers/repositories_controller.rb (working copy) | ||
|---|---|---|
| 56 | 56 |
# root entries |
| 57 | 57 |
@entries = @repository.entries('', @rev)
|
| 58 | 58 |
# latest changesets |
| 59 |
@changesets = @repository.changesets.find(:all, :limit => 10, :order => "committed_on DESC")
|
|
| 59 |
@changesets = @repository.changesets.find(:all, :limit => 10) |
|
| 60 | 60 |
show_error_not_found unless @entries || @changesets.any? |
| 61 | 61 |
end |
| 62 | 62 |
|
| app/models/repository/subversion.rb (working copy) | ||
|---|---|---|
| 32 | 32 | |
| 33 | 33 |
def changesets_for_path(path) |
| 34 | 34 |
revisions = scm.revisions(path) |
| 35 |
revisions ? changesets.find_all_by_revision(revisions.collect(&:identifier), :order => "committed_on DESC") : []
|
|
| 35 |
revisions ? changesets.find_all_by_revision(revisions.collect(&:identifier)) : [] |
|
| 36 | 36 |
end |
| 37 | 37 |
|
| 38 | 38 |
# Returns a path relative to the url of the repository |