Active
Project:
Editable Fields
Version:
7.x-1.0-alpha2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2013 at 02:28 UTC
Updated:
30 Jan 2013 at 02:32 UTC
Field Type: User Reference
Field Widget: Check boxes/radio buttons
When using editable fields with a user reference field I get the following error when attempting to save selections: "FieldLabel: this user can't be referenced." This is coming from the user_reference.module:
// Prevent performance hog if there are no ids to check.
if ($ids) {
$options = array(
'ids' => $ids,
);
$refs = user_reference_potential_references($field, $options);
foreach ($items as $delta => $item) {
if (is_array($item)) {
if (!empty($item['uid']) && !isset($refs[$item['uid']])) {
$errors[$field['field_name']][$langcode][$delta][] = array(
'error' => 'invalid_uid',
'message' => t("%name: this user can't be referenced.",
array('%name' => $instance['label'])),
);
}
}
}
}
} But this only happens when using the editablefields functionality. If I go into the node edit page and make the edits then it works just fine. Any thoughts?
Comments
Comment #1
Kirschbaum commentedAn addition note: As I mentioned when I select the users from the regular node edit page things work fine. They even show up as being checked when I go back to the detail page. However, when I try to deselect the user references using the editable fields feature, I get the following error message: