Provide proper data for widget

This commit is contained in:
Nathan Gray 2013-11-25 18:14:33 +00:00
parent a5227f2359
commit a749ba519d

View File

@ -1651,11 +1651,11 @@ unset($query['actions']);
//error_log(__METHOD__.__LINE__.array2string($field_data));
$content[$field][] = $field_data;//['EMAIL'];
$sel_options[$field][] = array(
// taglist requires these
'id' => $field_data,//['EMAIL'],
// 'label' => ($field_data['PERSONAL_NAME'] && $field_data['PERSONAL_NAME']!='NIL') ? $field_data['PERSONAL_NAME']:$field_data['EMAIL'],
// taglist requires these - not optional
'id' => $field_data,
'label' => str_replace('"',"'",$field_data),
// Optional
'title' => str_replace('"',"'",$field_data),//['RFC822_EMAIL']),
//'title' => str_replace('"',"'",$field_data),//['RFC822_EMAIL']),
);
// Add all other data, will be preserved & passed to js onclick
// Also available in widget.options.select_options