mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 10:51:38 +01:00
* mergeprint: fix problem with not replaced app-links like #contact/nfn; fix problem with not replaced date only option on date/datetime customfields
This commit is contained in:
parent
5e1f3ac1cb
commit
aecf198508
@ -447,7 +447,7 @@ abstract class bo_merge
|
||||
}
|
||||
return $content;
|
||||
}
|
||||
|
||||
|
||||
protected function apply_styles (&$content, $mimetype)
|
||||
{
|
||||
if ($mimetype == 'application/xml' &&
|
||||
@ -1122,7 +1122,7 @@ abstract class bo_merge
|
||||
|
||||
foreach($cf as $index => $field)
|
||||
{
|
||||
if($cfs[$field] && in_array($cfs[$field]['type'],$GLOBALS['egw_info']['apps']) )
|
||||
if($cfs[$field] && in_array($cfs[$field]['type'],array_keys($GLOBALS['egw_info']['apps'])) )
|
||||
{
|
||||
// Get replacements for that application
|
||||
$field_app = $cfs[$field]['type'];
|
||||
@ -1137,6 +1137,10 @@ abstract class bo_merge
|
||||
}
|
||||
$replacements[$placeholders[$index]] = $app_replacements[$field_app]['$$'.$sub[$index].'$$'];
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($cfs[$field]['type'] == 'date' || $cfs[$field]['type'] == 'date-time') $this->date_fields[] = '#'.$field;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user