mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
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:
parent
803099a49d
commit
40029aa9bf
@ -1624,13 +1624,14 @@ unset($query['actions']);
|
|||||||
{
|
{
|
||||||
foreach($envelope[$field] as $field_data)
|
foreach($envelope[$field] as $field_data)
|
||||||
{
|
{
|
||||||
|
//error_log(__METHOD__.__LINE__.array2string($field_data));
|
||||||
$content[$field][] = $field_data['EMAIL'];
|
$content[$field][] = $field_data['EMAIL'];
|
||||||
$sel_options[$field][] = array(
|
$sel_options[$field][] = array(
|
||||||
// taglist requires these
|
// taglist requires these
|
||||||
'id' => $field_data['EMAIL'],
|
'id' => $field_data['EMAIL'],
|
||||||
'label' => ($field_data['PERSONAL_NAME'] && $field_data['PERSONAL_NAME']!='NIL') ? $field_data['PERSONAL_NAME']:$field_data['EMAIL'],
|
'label' => ($field_data['PERSONAL_NAME'] && $field_data['PERSONAL_NAME']!='NIL') ? $field_data['PERSONAL_NAME']:$field_data['EMAIL'],
|
||||||
// Optional
|
// Optional
|
||||||
'title' => $field_data['RFC822_EMAIL']
|
'title' => str_replace('"',"'",$field_data['RFC822_EMAIL']),
|
||||||
)
|
)
|
||||||
// Add all other data, will be preserved & passed to js onclick
|
// Add all other data, will be preserved & passed to js onclick
|
||||||
// Also available in widget.options.select_options
|
// Also available in widget.options.select_options
|
||||||
|
Loading…
Reference in New Issue
Block a user