* 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:
Klaus Leithoff 2012-08-23 10:25:27 +00:00
parent 5e1f3ac1cb
commit aecf198508

View File

@ -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;
}
}
}