Hi,

I ran into this issue, and I think it might be a bug in the Signup module. When I erase any user (from the User's profile, Edit tab, press the Delete button), I get several messages that the anonymous signups for an event are cancelled and then the message that the user was deleted. When I check the signups under that event only the registered user signups were still there. I looked at the code in signup.module where the hook_user is implemented. I modified the line no 595 in signup.module from:

        // A single-user delete from the edit tab on the user's profile.
        $uids[] = $edit['uid'];

to

        // A single-user delete from the edit tab on the user's profile.
        $uids[] = $user->uid;

and now it seems to do the correct thing - the anonymous signups are no longer cancelled.
Maybe someone with more experience can look into this and see if they can reproduce it and find a (better) solution to this problem.

Thanks.

Comments

dww’s picture

Status: Active » Closed (duplicate)

Someone else reported this as #370397: All anonymous signups cancelled when any user is deleted -- I couldn't reproduce it, I asked for more information, and they never provided it. Please read that thread and reply there. Thanks!

BenK’s picture

I've just experienced the exact same problem. I went to delete a user who had never signed up for anything and upon confirmation of that user's deletion, I got a long page full of messages saying numerous signups had been deleted.

This deleted all anonymous signups across my entire site (which was over 500 signups). Luckily, I had exported that list somewhat recently so I only lost a few dozen names.

Obviously, this type of loss of data is pretty scary. At this point, I'm afraid to delete any user.

Thanks,
Ben

NOTE: I just saw the other thread on this issue and reposted this comment there.