I created a custom type with multiple user reference fields. Both user reference fields have "reverse link" enabled. I see both users on the page after I create an instance of the custom type, but only one of the two users have a reverse link back to the related content from their profile page. In each case, the reverse link only works for the second user reference field added.

CommentFileSizeAuthor
#6 userreference-multi-columns.patch1.37 KBmarkDrupal

Comments

DrDrupal’s picture

More info:

- I can just go with one user reference field and configure it to allow two values and things work...but not with two user reference fields.

- The appearance of the link from the content page to a referenced user's profile is very unreliable. It appears at times and not at other time...when it is just rendered as static text. The reverse link is always rendered as a link when it appears.

BTW, this test is being run on a fresh Drupal 6.9 install...fresh database...with only one add-on module - CCK.

yched’s picture

Status: Active » Fixed

Please try with CCK -dev, we fixed a few things in this area.
Do not hesitate to reopen if the problem is still around.

DrDrupal’s picture

Thanks...but I need a fairly stable release. I'll wait for a new drop...and go with a single user reference that allows the admin to select two values for now. That does work.

Thanks again.

Status: Fixed » Closed (fixed)

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

markDrupal’s picture

Version: 6.x-2.1 » 6.x-2.2
Status: Closed (fixed) » Active

I've noticed this with the 2.2 release. 4 user reference fields, only last field creates a reverse link on the user's profile.

markDrupal’s picture

Status: Active » Needs review
StatusFileSize
new1.37 KB

I believe this patch fixes it, you were overwriting the column name with the last found column name, changing the column entry into an array fixed it for me

yched’s picture

Status: Needs review » Fixed

Nice catch. Committed, thanks !

Status: Fixed » Closed (fixed)

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