Merge pull request '修复jurnal 更新 product问题' (#220) from KingChan/forgeplus:pm_project_develop into pm_project_develop
This commit is contained in:
commit
7da8102782
|
@ -31,7 +31,7 @@ class Api::Pm::BaseController < ApplicationController
|
||||||
|
|
||||||
def load_issue
|
def load_issue
|
||||||
return render_parameter_missing if params[:pm_project_id].blank?
|
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[:issue_id])
|
@issue = Issue.issue_issue.where(pm_project_id: params[:pm_project_id]).find_by_id(params[:issue_id])
|
||||||
render_not_found('疑修不存在!') if @issue.blank?
|
render_not_found('疑修不存在!') if @issue.blank?
|
||||||
end
|
end
|
||||||
# 具有对仓库的管理权限
|
# 具有对仓库的管理权限
|
||||||
|
|
|
@ -49,7 +49,7 @@ class Api::Pm::JournalsController < Api::Pm::BaseController
|
||||||
end
|
end
|
||||||
|
|
||||||
def load_issue
|
def load_issue
|
||||||
@issue = @project.issues.issue_issue.where(pm_project_id: params[:pm_project_id]).find_by_id(params[:issue_id])
|
@issue = Issue.issue_issue.where(pm_project_id: params[:pm_project_id]).find_by_id(params[:issue_id])
|
||||||
render_not_found('疑修不存在!') if @issue.blank?
|
render_not_found('疑修不存在!') if @issue.blank?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue