update
This commit is contained in:
parent
fe924527ec
commit
e22b2c8c29
|
@ -11,9 +11,8 @@ class Api::Pm::IssueLinksController < Api::Pm::BaseController
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
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'))
|
@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)
|
if @link.try(:destroy)
|
||||||
render_ok
|
render_ok
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue