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

refactor: better naming

Christophe Bliard2482ebe2d6c1
diff --git a/app/services/work_packages/set_attributes_service.rb b/app/services/work_packages/set_attributes_service.rb
index 75f011c9e79..34ce7b993b0 100644
--- a/app/services/work_packages/set_attributes_service.rb
+++ b/app/services/work_packages/set_attributes_service.rb
@@ -104,7 +104,7 @@ class WorkPackages::SetAttributesService < ::BaseServices::SetAttributes
!params.has_key?(field)
end
- def both_present?(*fields)
+ def all_present?(*fields)
work_package.values_at(*fields).all?(&:present?)
end