修改删除文件后跳转错误问题
This commit is contained in:
parent
c141501085
commit
b3489d3e68
|
@ -124,7 +124,12 @@ class AttachmentsController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { redirect_to_referer_or forum_memo_path(@attachment.container.forum,@attachment.container) }
|
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
|
||||||
|
|
||||||
format.js
|
format.js
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue