Page 1 of 1
frontendusers error - can't seem to delete empty group
Posted: Mon Aug 27, 2007 8:08 pm
by moorezilla
I created a new group under frontendusers but I no longer need it. I removed all users and tried to delete the group, but it fires the error "Cannot delete a group that still has users."
Going back to the users tab, when I select the group I want to delete and look for users, it's empty.
Any ideas?
feu 1.2.0
cmsms 1.1.1
php5
mysql5
linux/apache2
Re: frontendusers error - can't seem to delete empty group
Posted: Wed Sep 05, 2007 9:32 pm
by moorezilla
Bump...
Both of the groups that can't be deleted, even though they're empty, start with History. I wonder if this is the problem. One group is named "History" and the other is "historysuper"
Any ideas?
Re: frontendusers error - can't seem to delete empty group
Posted: Thu Sep 06, 2007 1:42 am
by calguy1000
I just (double) checked the SVN code to FEU, and after importing a group definition from XML (new functionality) I easily managed to delete the group, had the little trash can Icon and everything.
Seems to me I fixed a bug for this a while back.
Re: frontendusers error - can't seem to delete empty group
Posted: Thu Sep 06, 2007 11:30 am
by moorezilla
Yeah... the trash can icon is there for me, but after following the link to delete the group, it fires the error saying that it can't delete a group that has users in it. I'll double check the svn for files that I may have missed.
Re: (resolved!) frontendusers error - can't seem to delete empty group
Posted: Thu Sep 06, 2007 11:44 am
by moorezilla
If you look in action.do_deletegroup.php of the frontendusers module (even in the svn version), you'll see
Code: Select all
if( count($this->GetUsersInGroup( $roup['id'] )) != 0 )
That $roup needs to be changed to $group and then all is right with the universe.
am