Make sure that newly created periodic task are not done

This commit is contained in:
Patrick Gansterer 2017-01-26 20:54:53 +01:00
parent 2072fbb4d5
commit 1056b86f9d

View file

@ -13,6 +13,7 @@ class PeriodicTaskGroup < ActiveRecord::Base
next_task = template_task.dup next_task = template_task.dup
next_task.due_date = next_task_date next_task.due_date = next_task_date
next_task.done = false
next_task.save next_task.save
self.next_task_date += period_days self.next_task_date += period_days