Fix sharing only looks for addressbook templates for insert into document

This commit is contained in:
nathangray 2019-08-22 16:04:07 -06:00
parent f5c2ba52c8
commit e099086151

View File

@ -82,7 +82,7 @@ class Sharing extends \EGroupware\Api\Sharing
if ($GLOBALS['egw_info']['user']['apps']['mail'] && class_exists($appname.'_merge'))
{
$documents = call_user_func(array($appname.'_merge', 'document_action'),
$GLOBALS['egw_info']['user']['preferences']['addressbook']['document_dir'],
$GLOBALS['egw_info']['user']['preferences'][$appname]['document_dir'],
1, 'Insert in document', 'shareDocument_'
);
$documents['order'] = 20;