Fixed 2.5.5 "Managed Groups" Count one short on profile and member card

Freelancer

Active Member
When I manage 1 group it displays "Managed Groups" = 0
When I manage 52 groups, it displays "Managed Groups" = 51

...thus displaying 1 group short on the member card and profile view page. When I click on the link and it jumps to the page where all managed groups are visible, it shows the correct number of groups.
 
It is as designed yet. I have not watching whenever user change the manage roles. For created count. it is working fine. But managed group is not as expect. And I have not plan to fix in version 2.x. I will find the best way in 3.x when XF release 2.0
 
It is show correct counter for me. Did you try to rebuild something?
 
Yes I did rebuild everything...

The user has 1 managed group and it displays 0 in the profile

ManagedGroups.webp

But of course on the group tab it displays the container of that group.

ManagedGroupsOverview.webp
 
In the template "Team_user_view_info" the code is this

Code:
<xen:if is="{$_view_hook}=='member_view_info_block'">
    <dl>
        <dt>{xen:phrase Teams_manage_teams}:</dt>
        <dd><a href="{xen:helper groupRoute, 'browsegroups/membership', '', 'category=user','user_id={$user.user_id}', 'type=admin'}">{xen:number $user.manage_team_count}</a></dd></dl>
<xen:elseif is="{$_view_hook}=='member_card_stats'" />
    <dt>{xen:phrase Teams_manage_teams}:</dt> <dd><a href="{xen:helper groupRoute, 'browsegroups/membership', '', 'category=user','user_id={$user.user_id}', 'type=admin'}" class="concealed">{xen:number $user.manage_team_count}</a></dd>
</xen:if>

Is this correct?
 
Back
Top