|
|
|
@ -508,6 +508,7 @@ class IssuesController < ApplicationController
|
|
|
|
|
# 需要刷新详情页面,代码同步一致
|
|
|
|
|
# 获取project和issue状态是为了刷新页面
|
|
|
|
|
# 值所以用delete是因为issue和journal在act_as_attachment中是同一个类型
|
|
|
|
|
# 非动态页面直接刷新,动态页面手动刷新
|
|
|
|
|
def delete_journal
|
|
|
|
|
@issue = Issue.find(params[:id])
|
|
|
|
|
begin
|
|
|
|
@ -521,7 +522,11 @@ class IssuesController < ApplicationController
|
|
|
|
|
end
|
|
|
|
|
@user_activity_id = params[:user_activity_id]
|
|
|
|
|
respond_to do |format|
|
|
|
|
|
format.html{ redirect_to issue_url(@issue)}
|
|
|
|
|
if @user_activity_id
|
|
|
|
|
format.js
|
|
|
|
|
else
|
|
|
|
|
format.html{ redirect_to issue_url(@issue)}
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|