?
avatar Napoleon-BlownApart
Napoleon-BlownApart
24 Jan 2017

Steps to reproduce the issue

Click the Group Title heading.

Expected result

Groups sorted alphabetically whilst showing inheritance level.

Actual result

Groups sorted alphabetically but inheritance level not shown correctly.

System information (as much as possible)

With PHP debug enabled, allows errors to be visible.

1st error: libraries/cms/helper/usergroups.php (line 311) (once this error is fixed, see 2nd error below)
Undefined Property (that is the path attribute does not exist for the item)

2nd error: administrator/components/com_users/views/groups/tmpl/default.php (line 108)
Again, an Undefined Property (that is the level attribute does not exist for the item)

Additional comments

To fix this problem (works for my standard en-GB Joomla 3.6.5 stable-full install):
Insert into libraries/cms/helper/usergroups.php at line 311 the following:

if (!property_exists($parentGroup, 'path'))
{
    $parentGroup->path = array();
}

This will reveal the 2nd error. So, insert the following before the echo statement in administrator/components/com_users/views/groups/tmpl/default.php at line 108

$item->level = count($item->path);
avatar Napoleon-BlownApart Napoleon-BlownApart - open - 24 Jan 2017
avatar joomla-cms-bot joomla-cms-bot - change - 24 Jan 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Jan 2017
avatar Napoleon-BlownApart
Napoleon-BlownApart - comment - 26 Jan 2017

This has aleady been fixed by someone in the repo.

avatar Napoleon-BlownApart Napoleon-BlownApart - change - 26 Jan 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-01-26 04:46:05
Closed_By Napoleon-BlownApart
avatar Napoleon-BlownApart Napoleon-BlownApart - close - 26 Jan 2017

Add a Comment

Login with GitHub to post a comment