双向关联
This commit is contained in:
parent
2d30ae9914
commit
486156ff92
|
@ -2,7 +2,7 @@ class Api::Pm::IssueLinksController < Api::Pm::BaseController
|
||||||
before_action :load_project
|
before_action :load_project
|
||||||
before_action :load_issue
|
before_action :load_issue
|
||||||
def index
|
def index
|
||||||
@links = @issue.pm_links.where(be_linkable_type: 'Issue')
|
@links = PmLink.where(be_linkable_id: @issue.id,be_linkable_type: 'Issue').or(PmLink.where(linkable_id: @issue.id,linkable_type: 'Issue'))
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
|
|
Loading…
Reference in New Issue