# File app/controllers/tasks_controller.rb, line 189 def move_to_next_period task = Task.find(params[:id]) if task.period params[:period_id] = task.period.lower_item && task.period.lower_item.id params[:id] = task.id move_to_period(true) else redirect_to :action => :edit, :id => task end end