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

Fix params[:only] check for wiki dependent service

Oliver Günther5b308c53acd0
diff --git a/app/services/projects/copy/wiki_dependent_service.rb b/app/services/projects/copy/wiki_dependent_service.rb
index 4d1eaeb5d80..2322efe797e 100644
--- a/app/services/projects/copy/wiki_dependent_service.rb
+++ b/app/services/projects/copy/wiki_dependent_service.rb
@@ -73,7 +73,7 @@ module Projects::Copy
end
# Copy attachments
- unless skip_dependency?(params, :wiki_page_attachments)
+ unless params[:only].present? && !params[:only].include?(:wiki_page_attachments)
wiki_pages_map.each do |old_page, new_page|
copy_attachments(old_page.id, new_page.id, new_page.class.name)
end