Project

General

Profile

Error #116

Sort versions in milestone management view

Added by Emilio González Montaña over 15 years ago. Updated over 15 years ago.

Status:
Resolved
Priority:
Normal
Category:
Management
Target version:
Start date:
2009-07-13
Due date:
2009-07-13
% Done:

100%

Estimated time:
Source:
Detected on version:
Redmine version:
Milestones:

Description

Sort the versions list into the milestones management table view.

#1

Updated by Emilio González Montaña over 15 years ago

  • Due date set to 2009-07-13
  • Status changed from In progress to Resolved
  • % Done changed from 0 to 100

The sorting with sort method wasn't enough, because the normal version sort method was called, so the versions where sorted first by date, and then with name, but into the milestones management view only the named sorting was needed.

So the sort has been called like this:

milestone.versions.sort! { |a, b| a.name.downcase <=> b.name.downcase }

Also available in: Atom PDF