pm issue 查询取消关联,防止关联保存
This commit is contained in:
parent
df201d74e0
commit
71305d7304
|
@ -108,7 +108,7 @@ class Api::Pm::IssuesController < Api::Pm::BaseController
|
|||
|
||||
def load_issue
|
||||
return render_parameter_missing if params[:pm_project_id].blank?
|
||||
@issue = @project.issues.issue_issue.where(pm_project_id: params[:pm_project_id]).find_by_id(params[:id])
|
||||
@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…
Reference in New Issue