Browse Source

load_issues

pull/347/head
yystopf 1 year ago
parent
commit
46604c1010
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      app/controllers/api/pm/issues_controller.rb

+ 2
- 3
app/controllers/api/pm/issues_controller.rb View File

@@ -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



Loading…
Cancel
Save