mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
Use popup mail compose window if default document is an email, same as non-default documents
This commit is contained in:
parent
0bdad1cb75
commit
79f7a8a6cf
@ -1664,12 +1664,20 @@ abstract class bo_merge
|
||||
if ($export_limit == null) $export_limit = self::getExportLimit(); // check if there is a globalsetting
|
||||
if ($default_doc && ($file = egw_vfs::stat($default_doc))) // put default document on top
|
||||
{
|
||||
if(!$file['mime'])
|
||||
{
|
||||
$file['mime'] = egw_vfs::mime_content_type($default_doc);
|
||||
}
|
||||
$documents['document'] = array(
|
||||
'icon' => egw_vfs::mime_icon($file['mime']),
|
||||
'caption' => egw_vfs::decodePath(egw_vfs::basename($default_doc)),
|
||||
'group' => 1,
|
||||
'postSubmit' => true, // download needs post submit (not Ajax) to work
|
||||
);
|
||||
if ($file['mime'] == 'message/rfc822')
|
||||
{
|
||||
self::document_mail_action($documents['document'], $file);
|
||||
}
|
||||
}
|
||||
|
||||
$files = array();
|
||||
|
Loading…
Reference in New Issue
Block a user