mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Make sure line breaks (emails) get preserved when merging
This commit is contained in:
parent
61862bf50d
commit
dd9d78d29a
@ -91,6 +91,17 @@ class infolog_merge extends bo_merge
|
||||
{
|
||||
$array['info_contact'] = $array['info_link']['title'];
|
||||
}
|
||||
|
||||
// Make sure line breaks get preserved (Needed for emails in particular)
|
||||
switch($this->mimetype)
|
||||
{
|
||||
case 'application/vnd.oasis.opendocument.text': // open office
|
||||
case 'application/vnd.oasis.opendocument.spreadsheet':
|
||||
case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': // ms office 2007
|
||||
case 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet':
|
||||
$record->info_des = nl2br($record->info_des);
|
||||
}
|
||||
|
||||
// Set any missing custom fields, or the marker will stay
|
||||
$array = $record->get_record_array();
|
||||
foreach($this->bo->customfields as $name => $field)
|
||||
|
Loading…
Reference in New Issue
Block a user