Commit 6f9267bb authored by yched's avatar yched

#117813 - fix select list widget for noderef / userref filling 'delta' column with

 the nid / uid
parent deec7129
......@@ -235,7 +235,7 @@ function nodereference_widget($op, &$node, $field, &$items) {
unset($items['nids'][0]);
}
$items = content_transpose_array_rows_cols(array('nid' => $items['nids']));
$items = array_values(content_transpose_array_rows_cols(array('nid' => $items['nids'])));
}
else {
$items[0]['nid'] = $items['nids'];
......
......@@ -173,7 +173,7 @@ function userreference_widget($op, &$node, $field, &$items) {
// drop the 'none' option
unset($items['uids']['none']);
if (!empty($items['uids'])) {
$items = content_transpose_array_rows_cols(array('uid' => $items['uids']));
$items = array_values(content_transpose_array_rows_cols(array('uid' => $items['uids'])));
}
else {
$items[0]['uid'] = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment