|
|
|
@ -1115,7 +1115,7 @@ class ShixunsController < ApplicationController
|
|
|
|
|
g.delete_project(@shixun.gpid) if @shixun.try(:gpid).present?
|
|
|
|
|
apply_record = ApplyAction.where(:container_id => @shixun.id, :container_type => "ApplyShixun")
|
|
|
|
|
apply_record.delete_all if apply_record
|
|
|
|
|
HomeworkCommonsShixuns.where(:shixun_id => @shixun).delete_all # 关联删报错,后续解决
|
|
|
|
|
#HomeworkCommonsShixuns.where(:shixun_id => @shixun).delete_all # 关联删报错,后续解决
|
|
|
|
|
@shixun.update_attribute(:status, -1)
|
|
|
|
|
respond_to do |format|
|
|
|
|
|
if params[:come_from] == "admin"
|
|
|
|
|