Forgive the title, this is a very edge case bug and is hard to describe. I'll do my best, but I'm attaching a feature that shows this behavior. I tested this against 7.x-2.x from 2/15.

  1. Add a simple text field to the user accounts at admin/config/people/accounts/fields named test.
  2. Create a new node content type named userreftest, with a user_reference field named Userref. Allow the field to have unlimited instances.
  3. Create two users. Place 'foo' in the test field for one, and 'bar' in the test field for the other.
  4. Create a new node of type userreftest. Link the Userref field on the node to the two users you just created.
  5. Preview the node you just created, note everything looks as it should.
  6. Create a new node view. Set the format to table for ease of illustration.
  7. Add a relationship, using the Userref field. Check the box next to 'require this relationship' to ensure only nodes with this relationship are included in the view.
  8. Add the field Node: Title to the fields, no relationship.
  9. Add the field User: Name using the relationship.
  10. Add the field Fields: test from your user type using the relationship.
  11. Save the view, and preview your results.

Your table will show the same node title twice, this is the desired outcome. It will show each user's name once, this is also the desired outcome. However, you will see only one of 'foo' or 'bar', but not both when viewing the test field.

This only happens on fields assigned to users by the site admin -- fields that ship with the user type all work fine.

I'm attaching a feature that should give you everything except for the two users and the node if you want a shortcut to reproduce.

CommentFileSizeAuthor
references_bug.tar_.gz2.87 KBjustintime

Comments

yched’s picture

Status: Active » Closed (cannot reproduce)

Relationships handling changed quite a bit since the post.Is that still an issue ?
Assuming fixed, please reopen if not.