Project

General

Profile

« Previous | Next » 

Revision cc81d993

Added by Daniel Lobato Garcia over 7 years ago

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

  • added
  • modified
  • copied
  • renamed
  • deleted