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

avoid counting bulk updated work packages multiple times

ulferts1d008e217d7b
diff --git a/app/views/work_packages/bulk/_errors.html.erb b/app/views/work_packages/bulk/_errors.html.erb
index 99040b22f87..b8d066e5fd8 100644
--- a/app/views/work_packages/bulk/_errors.html.erb
+++ b/app/views/work_packages/bulk/_errors.html.erb
@@ -1,7 +1,7 @@
<%
erroneous_results = service_result.results_with_errors(include_self: false)
error_count = erroneous_results.count
- total_count = service_result.dependent_results.count
+ total_count = service_result.dependent_results.map(&:result).uniq.count
selected_count = selected_work_packages.count
%>