From 40029aa9bff62599520ee97209f87a39286ba7f1 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Sat, 20 Jul 2013 08:20:04 +0000 Subject: [PATCH] make sure double quotes in title of taglist will be replaced by singlequotes, as they mess up the title/tag/value set --- mail/inc/class.mail_ui.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index de8c22b9e0..e4f520540b 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -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