make sure double quotes in title of taglist will be replaced by singlequotes, as they mess up the title/tag/value set

This commit is contained in:
Klaus Leithoff 2013-07-20 08:20:04 +00:00
parent 803099a49d
commit 40029aa9bf

View File

@ -1624,13 +1624,14 @@ unset($query['actions']);
{
foreach($envelope[$field] as $field_data)
{
//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'],
// Optional
'title' => $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