The process of deleting a user calls function flag_user_account_removal (flag.module) which decrements the count, attempting to update the row with a count of -1. It fails on line 621.

It needs to use the other function that is available, _update_count in flag.inc, which handles this case.

Thanks,
-guy

Comments

joachim’s picture

Status: Active » Closed (duplicate)

Thanks for reporting this.

However, there's another issue for this, with a patch, at #1362260: Flag may attempt to decrement flag_counts below 0, causing PDO error (while deleting accounts).