The user reference module displays a selectable empty user between N/A and the first "real" user in the edit form.

The problem seems to come from the SQL query which selects the anonymous user (uid=0).

In CCK on D6 the anonymous user was not shown even if no roles is checked.

How to reproduce :
- Create a User reference field and set the Widget to checkbox or select list
- Edit a content associated to this field : the edit page displays an empty user in the select list or checkbox.

CommentFileSizeAuthor
#1 user_reference.module.patch359 bytesJulienD

Comments

JulienD’s picture

StatusFileSize
new359 bytes

After some tests, the empty result shown in the select form is the anonymous user.

A condition should be added to the default query to exclude the uid 0 as it was done in userreference for Drupal 6

JulienD’s picture

Status: Active » Needs review
yched’s picture

Status: Needs review » Closed (fixed)

Has been fixed meanwhile.