|
|
@@ -42,7 +42,7 @@ class Api::V1::Issues::JournalsController < Api::V1::BaseController |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
def load_issue |
|
|
def load_issue |
|
|
@issue = @project.issues.where(project_issues_index: params[:index]).where.not(id: params[:index]).take || Issue.find_by_id(params[:index]) |
|
|
|
|
|
|
|
|
@issue = @project.issues.issue_issue.where(project_issues_index: params[:index]).where.not(id: params[:index]).take || Issue.find_by_id(params[:index]) |
|
|
if @issue.blank? |
|
|
if @issue.blank? |
|
|
render_not_found("疑修不存在!") |
|
|
render_not_found("疑修不存在!") |
|
|
end |
|
|
end |
|
|
|