修改position提示

This commit is contained in:
huang 2017-02-26 22:50:34 +08:00
parent fce24d11a9
commit 3bda887144
1 changed files with 1 additions and 2 deletions

View File

@ -961,8 +961,7 @@ class ProjectsController < ApplicationController
ActiveRecord::Base.transaction do
if position < original_tasks_count
# 继续发布下一个任务
position = position + 1
publish_training_tasks original_project_id, @training_task.project_id, position
publish_training_tasks original_project_id, @training_task.project_id, position + 1
end
@training_task.update_attribute(:status, 1)
# 创建一条回复提醒