公共贴吧附件删除报错问题修正,竞赛作品附件删除报错问题修正

course_group
z9hang 11 years ago
parent 1b98572bc2
commit 42d0f420a8

@ -193,12 +193,14 @@ class AttachmentsController < ApplicationController
else
format.html { redirect_to_referer_or course_path(@course) }
end
elsif !@attachment.container.nil? && @attachment.container.is_a?(Softapplication)
format.html { redirect_to_referer_or softapplications_path(@attachment.container) }
else
# if @project.nil?
# format.html { redirect_to_referer_or forum_memo_path(@attachment.container.forum, @attachment.container) }
# else
if @project.nil?
format.html { redirect_to_referer_or forum_memo_path(@attachment.container.forum, @attachment.container) }
else
format.html { redirect_to_referer_or project_path(@project) }
# end
end
end
format.js

Loading…
Cancel
Save