mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
新增:工作项关联项目查询
This commit is contained in:
@@ -487,7 +487,7 @@ class Project < ApplicationRecord
|
||||
end
|
||||
|
||||
def full_url
|
||||
Rails.application.config_for(:configuration)['platform_url'] + '/' + self.owner.try(:login) + '/' + self.identifier
|
||||
Rails.application.config_for(:configuration)['platform_url'].to_s + '/' + self.owner&.try(:login).to_s + '/' + self.identifier.to_s
|
||||
end
|
||||
|
||||
def to_builder
|
||||
|
||||
@@ -59,7 +59,7 @@ json.pm_project_id issue.pm_project_id
|
||||
json.time_scale issue.time_scale
|
||||
json.child_count issue.child_count
|
||||
json.project do
|
||||
if issue.project.present?
|
||||
if issue.project.present? && issue.owner.present?
|
||||
json.partial! "api/v1/projects/detail", locals: {project: issue.project}
|
||||
else
|
||||
json.nil!
|
||||
|
||||
Reference in New Issue
Block a user