forked from extern/egroupware
Remove comma from personal part since comma is preserved as address separator
This commit is contained in:
parent
19b8c555ef
commit
03fd308d00
@ -852,6 +852,9 @@ app.classes.addressbook = AppJS.extend(
|
||||
var personal = data.data.n_fn || '';
|
||||
if (personal.match(/[^a-z0-9. -]/i)) personal = '"'+personal.replace(/"/, '\\"')+'"';
|
||||
|
||||
//remove comma in personal as it will confilict with mail content comma seperator in the process
|
||||
personal = personal.replace(/,/g,'');
|
||||
|
||||
if(email_business)
|
||||
{
|
||||
emails.push((personal?personal+' <':'')+email_business+(personal?'>':''));
|
||||
|
@ -49,7 +49,7 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd)
|
||||
match.push(index[0]);
|
||||
match[index[0]] = index[1];
|
||||
}
|
||||
|
||||
if (mailto[1]) mailto[1] = mailto[1].replace(/__AMPERSAND__/g, '&');
|
||||
var content = {
|
||||
to: mailto[1] || [],
|
||||
cc: match['cc'] || [],
|
||||
|
Loading…
Reference in New Issue
Block a user