Skip to content
代码片段 群组 项目
未验证 提交 ad9d86b4 编辑于 作者: Brian Williams's avatar Brian Williams 提交者: GitLab
浏览文件

Merge branch '469446-fix-export' into 'master'

Add safeguard for author in export setter

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/157814



Merged-by: default avatarBrian Williams <bwilliams@gitlab.com>
Approved-by: default avatarBrian Williams <bwilliams@gitlab.com>
Co-authored-by: default avatarSubashis <schakraborty@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -104,7 +104,7 @@ def make_group_level_export(group) ...@@ -104,7 +104,7 @@ def make_group_level_export(group)
def make_instance_level_export def make_instance_level_export
self.project = self.group = nil self.project = self.group = nil
self.organization_id = set_organization(author.namespace) self.organization_id = set_organization(author&.namespace)
end end
def set_organization(namespace) def set_organization(namespace)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册