issue动态中不能删除问题
This commit is contained in:
parent
d51295127d
commit
f12423e8a6
|
@ -508,6 +508,7 @@ class IssuesController < ApplicationController
|
||||||
# 需要刷新详情页面,代码同步一致
|
# 需要刷新详情页面,代码同步一致
|
||||||
# 获取project和issue状态是为了刷新页面
|
# 获取project和issue状态是为了刷新页面
|
||||||
# 值所以用delete是因为issue和journal在act_as_attachment中是同一个类型
|
# 值所以用delete是因为issue和journal在act_as_attachment中是同一个类型
|
||||||
|
# 非动态页面直接刷新,动态页面手动刷新
|
||||||
def delete_journal
|
def delete_journal
|
||||||
@issue = Issue.find(params[:id])
|
@issue = Issue.find(params[:id])
|
||||||
begin
|
begin
|
||||||
|
@ -521,9 +522,13 @@ class IssuesController < ApplicationController
|
||||||
end
|
end
|
||||||
@user_activity_id = params[:user_activity_id]
|
@user_activity_id = params[:user_activity_id]
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
if @user_activity_id
|
||||||
|
format.js
|
||||||
|
else
|
||||||
format.html{ redirect_to issue_url(@issue)}
|
format.html{ redirect_to issue_url(@issue)}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue