Download & Extend

Friend count skewed due to duplicate (reverse) entries in flag_friend table.

Project:Flag Friend
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:major
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I'm not 100% under which circumstances this occurs, but sometimes a duplicate (reverse) entry will be added for a user in flag_friends resulting in a skewed friend count.

Comments

#1

Status:active» needs review

Attached patch fixes this problem by adding a check against (reverse) duplicates before inserting a new entry in flag_friends.

AttachmentSize
patch_commit_7ceb9abe0508.patch 2.71 KB

#2

Status:needs review» reviewed & tested by the community

Looks sound to me. I didn't have this problem, so it should probably be checked out by the maintainer before being committed.

#3

Status:reviewed & tested by the community» fixed

Committed: http://drupalcode.org/project/flag_friend.git/commitdiff/46e8bb4e111b881...

Thanks!

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here