mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
load_issues
This commit is contained in:
@@ -279,9 +279,8 @@ class Api::Pm::IssuesController < Api::Pm::BaseController
|
||||
end
|
||||
|
||||
def load_issue
|
||||
@issue = Issue.find_by_id params[:id]
|
||||
# return render_parameter_missing if params[:pm_project_id].blank?
|
||||
# @issue = Issue.issue_issue.where(pm_project_id: params[:pm_project_id]).find_by_id(params[:id])
|
||||
return render_parameter_missing if params[:pm_project_id].blank?
|
||||
@issue = Issue.issue_issue.where(pm_project_id: params[:pm_project_id]).find_by_id(params[:id])
|
||||
render_not_found('疑修不存在!') if @issue.blank?
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user