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
update
pull/347/head
kingChan
2 years ago
parent
fe924527ec
commit
e22b2c8c29
1 changed files
with
1 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-2
app/controllers/api/pm/issue_links_controller.rb
+ 1
- 2
app/controllers/api/pm/issue_links_controller.rb
View File
@@ -11,9 +11,8 @@ class Api::Pm::IssueLinksController < Api::Pm::BaseController
end
def destroy
params ={"pm_project_id":"17", "issue_id":"4279", "id":3117}
@links = PmLink.where(be_linkable_id: @issue.id, be_linkable_type: 'Issue', linkable_id: params[:id], linkable_type: 'Issue').or(PmLink.where(linkable_id: @issue.id, linkable_type: 'Issue', be_linkable_id: params[:id], be_linkable_type: 'Issue'))
@link =@links.last
@link =
@links.last
if @link.try(:destroy)
render_ok
else
Write
Preview
Loading…
Cancel
Save