Merge pull request #163 from foodcoop-rostock/order-tasks-alphabetically

Order tasks with same date by name.
This commit is contained in:
wvengen 2013-09-17 05:45:13 -07:00
commit 6d4aa5ed40

View file

@ -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