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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
better readability on yield with multiple params
ulfertse05aef61b7c0
diff --git a/app/components/filters_component.rb b/app/components/filters_component.rbindex 6080476d2e8..0383665ba67 100644--- a/app/components/filters_component.rb+++ b/app/components/filters_component.rb@@ -47,7 +47,11 @@ class FiltersComponent < ApplicationComponentactive_filter = query.find_active_filter(filter.name)filter_active = active_filter.present?- yield(filter_active ? active_filter : filter, filter_active)+ if filter_active+ yield active_filter, filter_active+ else+ yield filter, filter_active+ endendend