[41453] Use valid_values! to get assignee count

This will remove any invalid values such members no longer present.

https://community.openproject.org/wp/41453
pull/10362/head
Oliver Günther 3 years ago
parent b7d024c9d7
commit 2babe2edc0
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 2
      modules/team_planner/app/cells/team_planner/row_cell.rb

@ -49,7 +49,7 @@ module TeamPlanner
query
.filters
.detect { |filter| filter.name == :assigned_to_id }
.then { |filter| filter ? filter.values.count : 0 }
.then { |filter| filter ? filter.valid_values!.count : 0 }
end
def button_links

Loading…
Cancel
Save