Fixes #18260 - Display proper organizations count on table
If the user is scoped to taxonomy "A", "Host.count" will only return hosts in that taxonomy. That is correct. However there is a usecase where we want to display the hosts count regardless of the current taxonomy.
The table for locations and organizations was showing the "Host.count" scoped to the current taxonomy, so it would show 0 everywhere but in the current taxonomy.
The fix is to make the helper aware of this issue, and show the unscoped Host.count when displaying the organizations/locations table
(cherry picked from commit cc81d99322301a66f0a774ffac138c6a3d72421f)
Related issues
Bug #18260: Choose different org will result in the same org's host number change in organizations page
Fixes #18260 - Display proper organizations count on table
If the user is scoped to taxonomy "A", "Host.count" will only return
hosts in that taxonomy. That is correct. However there is a usecase
where we want to display the hosts count regardless of the current
taxonomy.
The table for locations and organizations was showing the "Host.count"
scoped to the current taxonomy, so it would show 0 everywhere but in the
current taxonomy.
The fix is to make the helper aware of this issue, and show the unscoped
Host.count when displaying the organizations/locations table
(cherry picked from commit cc81d99322301a66f0a774ffac138c6a3d72421f)