Move fix for missing merge into document actions into the right place, was affecting regular merge into document actions too

This commit is contained in:
nathangray 2019-06-11 14:32:12 -06:00
parent c500403e63
commit f11a6eb58d
2 changed files with 5 additions and 5 deletions

View File

@ -287,11 +287,6 @@ class Merge extends Api\Storage\Merge
protected static function customise_mail_actions(&$action)
{
if ($action['children']['message/rfc822'])
{
// Just email already filtered out
$action['children'] = $action['children']['message/rfc822']['children'];
}
if(strpos($action['egw_open'], 'edit-mail') === 0)
{
unset($action['confirm_multiple']);

View File

@ -88,6 +88,11 @@ class Sharing extends \EGroupware\Api\Sharing
$documents['order'] = 20;
// Mail only
if ($documents['children']['message/rfc822'])
{
// Just email already filtered out
$documents['children'] = $documents['children']['message/rfc822']['children'];
}
foreach($documents['children'] as $key => &$document)
{
if(strpos($document['target'],'compose_') === FALSE)