Merge pull request #454 from foodcoop1040/done
Make sure that newly created periodic task are not done
This commit is contained in:
commit
571d927360
1 changed files with 3 additions and 2 deletions
|
@ -13,6 +13,7 @@ class PeriodicTaskGroup < ActiveRecord::Base
|
|||
|
||||
next_task = template_task.dup
|
||||
next_task.due_date = next_task_date
|
||||
next_task.done = false
|
||||
next_task.save
|
||||
|
||||
self.next_task_date += period_days
|
||||
|
|
Loading…
Reference in a new issue