This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
修复:疑修不存在
pull/348/head^2^2
yystopf
1 year ago
parent
78c5458bb8
commit
ce5d5a88ba
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/controllers/api/pm/base_controller.rb
+1
-1
app/controllers/api/pm/issues_controller.rb
+ 1
- 1
app/controllers/api/pm/base_controller.rb
View File
@@ -31,7 +31,7 @@ class Api::Pm::BaseController < ApplicationController
def load_issue
# 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[:issue_id])
@issue = Issue.issue_issue.find_by_id(params[:issue_id])
render_not_found('疑修不存在!') if @issue.blank?
end
# 具有对仓库的管理权限
+ 1
- 1
app/controllers/api/pm/issues_controller.rb
View File
@@ -285,7 +285,7 @@ class Api::Pm::IssuesController < Api::Pm::BaseController
def load_issue
# 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])
@issue = Issue.issue_issue.find_by_id(params[:id])
render_not_found('疑修不存在!') if @issue.blank?
end
Write
Preview
Loading…
Cancel
Save