Deleting Users in ewg [message #26990] |
Wed, 24 August 2005 07:08 |
Kagex
Messages: 4 Registered: August 2005 Location: Singapore
Karma: 0
|
Junior Member |
|
|
Deleting users in egroupware doesn't remove the forum user. When i tried to add in another user with the same name, a sql error occurred. Any way to work around this problem?
thanks.
|
|
|
Re: Deleting Users in ewg [message #26992 is a reply to message #26990] |
Wed, 24 August 2005 08:47 |
Kagex
Messages: 4 Registered: August 2005 Location: Singapore
Karma: 0
|
Junior Member |
|
|
Added the following line before "ExecMethod('admin.uiaccounts.list_users');" in \admin\inc\class.boaccounts.inc.php
$db->query("delete FROM phpgw_fud_users where egw_id = '". $account_id. "'",__LINE__,__FILE__);
Now whenever egw deletes a user, it deletes the fudforum user as well.
[Updated on: Wed, 24 August 2005 08:48] Report message to a moderator
|
|
|
Re: Deleting Users in ewg [message #27002 is a reply to message #26992] |
Wed, 24 August 2005 13:27 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
FUDforum registers a delete user hook, but I am guessing eGW forgets to call it, so it'd be an eGW bug.
You can see the hook registration code inside egroupware/fudforum/setup/setup.inc.php
FUDforum Core Developer
|
|
|