Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#52886] fix copy service issue with deep query result

Eric Schuberta43de83eb4b1
diff --git a/modules/storages/app/services/projects/copy/file_links_dependent_service.rb b/modules/storages/app/services/projects/copy/file_links_dependent_service.rb
index 9f6bbd15038..bc80c10d5da 100644
--- a/modules/storages/app/services/projects/copy/file_links_dependent_service.rb
+++ b/modules/storages/app/services/projects/copy/file_links_dependent_service.rb
@@ -87,7 +87,7 @@ module Projects::Copy
target_project_storage.project_folder_path_escaped
)
new_file_location = CGI.unescape(new_file_location[1..])
- folder_files_file_ids_deep_query_result[new_file_location]['fileid']
+ folder_files_file_ids_deep_query_result[new_file_location].id
else
old_file_link.origin_id
end
@@ -109,6 +109,7 @@ module Projects::Copy
end
end
end
+
# rubocop:enable Metrics/AbcSize
# rubocop:enable Metrics/PerceivedComplexity