Merge pull request #163 from foodcoop-rostock/order-tasks-alphabetically
Order tasks with same date by name.
This commit is contained in:
commit
6d4aa5ed40
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ class Workgroup < Group
|
|||
|
||||
has_many :tasks
|
||||
# returns all non-finished tasks
|
||||
has_many :open_tasks, :class_name => 'Task', :conditions => ['done = ?', false], :order => 'due_date ASC'
|
||||
has_many :open_tasks, :class_name => 'Task', :conditions => ['done = ?', false], order: 'due_date ASC, name ASC'
|
||||
|
||||
validates_uniqueness_of :name
|
||||
validate :last_admin_on_earth, :on => :update
|
||||
|
|
Loading…
Reference in a new issue