Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you look at someone else's relationships pages, you are returned a list of all relationships in the db, not just those of that user. Additionally, you are sometimes returned info for the user and the user's relationship. The former is happening b/c of a typo in a variable name (viewed_user vs. viewd_user--missing "e"). The latter is happening b/c the code's comparing using your user object rather than user x's relationship object. Finally, there was some reversed code that returned 404 for real users, the page for uid == 0. A patch is attached.
Comment | File | Size | Author |
---|---|---|---|
user_relationships_theme.patch | 1.24 KB | gwen |
Comments
Comment #1
sprsquish CreditAttribution: sprsquish commentedlooks fine to me. Must have completly missed the err after creating the previous patch. I won't be available this weekend so please commit the patch the next chance you get.
Comment #2
gwen CreditAttribution: gwen commentedComment #3
(not verified) CreditAttribution: commented