I have found two definite bugs in the 6.x-1.0-beta10 version of this module. I'm not aware if they are in previous versions as I have not used any. I posted about these bugs a few days ago but I wasn't sure if it was just down to some mistake or alteration to the module I made. And as the official release date of this module was april the 5th I couldn't understand how no other users had posted about this isssue.

Anyway, to test it out, I made a completely fresh install of drupal on my website with a new database, and just added the user relationships, devel and admin menu modules. I then created a 'friend' relationship and made various users friends of each other. The two issues were still there. Here's what they are -

1). The number of relationships that are supposed to display in the 'My Relationships: friends ' block are incorrect. If I enter 8 in the 'Number of relationships to display in block:' field I only get 4 relationships displayed.

2). Users can't view each other relationships. I granted users the permission 'view user relationships' but when they go to a user/*/relationship page they get an access denied message. Even if I grant them a view 'administer user relationships' permission they still can't access the page. The only way they can access the page is if they are granted an 'administer users' permission from the users module.

The first issue can be dealt with by just doubling the amount of user relationships to display as it the function behind it just returns half the amount it is supposed to. So I can get by doing this for the moment even if it's not an ideal situation and the SQL code has to grab twice the amount of results it is supposed to just to display the desired amount of relationships.

The second issue can't be worked around from I can see. Basically users can't access other user's relationships pages which is a pretty big bug imo. Here's my other two posts on these issues where I go into a bit more detail on the problems.

http://drupal.org/node/481216?mode=2&sort=2
http://drupal.org/node/481874

Comments

alex.k’s picture

Thank you for your report and especially the troubleshooting of the code. They do look like real bugs, I'll try to look into them in at earliest chance.

ltwinner’s picture

Cheers man, keep up the good work, this module kicks ass.

Plazmus’s picture

Any updates on that issue, anyone have a fix ?
I'm also experiencing problem with a wrong amount of friends displayed

alex.k’s picture

Status: Active » Fixed

Both of these are now fixed in CVS.

Plazmus’s picture

I know Alex, tested it and it works for me, thanks :)

alex.k’s picture

Great, appreciate the follow-up.

Status: Fixed » Closed (fixed)

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