the values returned by userreference_user hook are incorrectly formated, resulting in garbage output on user/'uid' and user/'uid'/edit pages.

The included patch corrects that
Note : it doesn't deal with the content of the 'referenced by' secondary tab on the user edit page, which is still empty for the moment ($op == 'form' not implemented)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yched’s picture

Status: Active » Needs review
yched’s picture

Updated :
$field['field_name'] is not available in this part of the code - and maybe not relevant either ?

codexmas’s picture

I described this issue in another comment:
http://drupal.org/node/53429

It is not really a bug because several of the CCK modules are under development.
Especially the userreference module, it is basically just a skeleton that hasn't been
fleshed out yet.

yched’s picture

Agreed on the 'skeleton' thing.
Yet the _user hook generating the display on user profile pages is coded, it's just not outputting the results in the expected format.

So even if the code is subject to future changes, we might just as well put a coherent version in cvs..

JonBob’s picture

This feature has been removed temporarily, but I'll leave this issue in patch status for when I have time to review the fix and reintroduce the feature. It needs to be done in a somewhat configurable fashion, I think; the presence of userreference should not enforce this display. Maybe it's not the domain of this module at all.

JonBob’s picture

Status: Needs review » Fixed

The status of the related feature request is now handled at http://drupal.org/node/60713.

Anonymous’s picture

Status: Fixed » Closed (fixed)