Description
Describe the bug
When accessing the contacts list, the teams are displayed in the left panel, with a number next to them (members count if I'm not mistaken). This members count changes, when one clicks on the team, to display the team members (diminishes).
In teams, we have added groups, which come from LDAP.
It seems to me that the initial count lists all users, be them direct members of the team of through the addition of the LDAP group.
The later count only lists entities being part of the team, i.e. number of individual users + number of groups.
It's quite strange behaviour in any case, that such a count changes in such a way, for users.
Steps to reproduce
Need to have LDAP groups activated.
Add both regular members in a team, as well as a LDAP group to the team
Navigate from all contacts page (apps/contacts/) to a particular team's page (apps/contacts/circle/...) and notice the members count number change
Expected behavior
Number of members of a team shouldn't change between global view and team view
Actual behavior
See above
Contact version
7.0.5
Operating system
No response
PHP engine version
None
Web server
None
Database
None
Additional info
No response