Order tasks with same date by name.

This commit is contained in:
Robert Waltemath 2013-09-05 10:16:57 +02:00
parent 3792069fda
commit 9f22615a25

View file

@ -3,7 +3,7 @@ class Workgroup < Group
has_many :tasks has_many :tasks
# returns all non-finished 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 validates_uniqueness_of :name
validate :last_admin_on_earth, :on => :update validate :last_admin_on_earth, :on => :update