修改position提示
This commit is contained in:
parent
fce24d11a9
commit
3bda887144
|
@ -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)
|
||||
# 创建一条回复提醒
|
||||
|
|
Loading…
Reference in New Issue