Index: trunk/kernel/units/users/users_item.php =================================================================== diff -u -r3307 -r3576 --- trunk/kernel/units/users/users_item.php (.../users_item.php) (revision 3307) +++ trunk/kernel/units/users/users_item.php (.../users_item.php) (revision 3576) @@ -161,6 +161,10 @@ if ($ret) { $this->UpdateCustomFields(); + + // find out how to syncronize user only when it's copied to live table + $sync_manager =& $this->Application->recallObject('UsersSyncronizeManager', null, Array(), 'InPortalSyncronize'); + $sync_manager->performAction('createUser', $this->FieldValues); } return $ret; } @@ -172,10 +176,33 @@ if ($ret) { $this->UpdateCustomFields(); + + // find out how to syncronize user only when it's copied to live table + $sync_manager =& $this->Application->recallObject('UsersSyncronizeManager', null, Array(), 'InPortalSyncronize'); + $sync_manager->performAction('updateUser', $this->FieldValues); } return $ret; } + /** + * Deletes the record from databse + * + * @access public + * @return bool + */ + function Delete($id = null) + { + $ret = parent::Delete($id); + + if ($ret) + { + $sync_manager =& $this->Application->recallObject('UsersSyncronizeManager', null, Array(), 'InPortalSyncronize'); + $sync_manager->performAction('deleteUser', $this->FieldValues); + } + + return $ret; + } + } ?> \ No newline at end of file