There's a bug in user reference module related to the "User status that can be referenced" option. When the option "All users" is selected, it will show up as "Blocked users" the next time the field is edited, which causes malfunction if the field settings is saved with that value.

This bug was introduced when attemping to fix this option that was not really working before. Please, see #416134: Userreference, impossible to filter allowed values by blocked users.

Issue where this has been detected: #356589: User reference default value to be the username of the current user.

Comments

markus_petrux’s picture

Status: Active » Needs review

Open userreference.module and apply this mini-patch:

-        '#default_value' => isset($field['referenceable_status']) ? (int)$field['referenceable_status'] : '',
+        '#default_value' => isset($field['referenceable_status']) ? $field['referenceable_status'] : '',

I'll commit this to CVS asap.

markus_petrux’s picture

Status: Needs review » Fixed

Committed to CVS (branches CCK2 and CCK3).

Status: Fixed » Closed (fixed)

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