mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
fixed 2 bugs with the new addressbook document templates
This commit is contained in:
parent
8cd9ca29ed
commit
1651819dce
@ -85,6 +85,11 @@ class addressbook_merge // extends bo_merge
|
||||
case 'cat_id':
|
||||
if ($value)
|
||||
{
|
||||
if (!is_object($GLOBALS['egw']->cats))
|
||||
{
|
||||
require_once(EGW_API_INC.'/class.categories.inc.php');
|
||||
$GLOBALS['egw']->cats =& new categories;
|
||||
}
|
||||
$cats = array();
|
||||
foreach(is_array($value) ? $value : explode(',',$value) as $cat_id)
|
||||
{
|
||||
@ -148,7 +153,7 @@ class addressbook_merge // extends bo_merge
|
||||
'relatives' => RELATIVE_ROOT,
|
||||
))))
|
||||
{
|
||||
$err = lang("Document '%1' does not exist or is not readable for you!");
|
||||
$err = lang("Document '%1' does not exist or is not readable for you!",$document);
|
||||
return false;
|
||||
}
|
||||
// generate replacements
|
||||
|
@ -1874,7 +1874,7 @@ $readonlys['button[vcard]'] = true;
|
||||
'must_exist' => true,
|
||||
)))
|
||||
{
|
||||
return lang("Document '%1' does not exist or is not readable for you!");
|
||||
return lang("Document '%1' does not exist or is not readable for you!",$document);
|
||||
}
|
||||
require_once(EGW_INCLUDE_ROOT.'/addressbook/inc/class.addressbook_merge.inc.php');
|
||||
$document_merge =& new addressbook_merge();
|
||||
|
Loading…
Reference in New Issue
Block a user