Prevent duplicate discharge template content
This commit is contained in:
parent
4d5155a2f8
commit
f5743be68a
|
|
@ -7398,6 +7398,7 @@ class Ipd_discharge extends BaseController
|
|||
$mpdf->SetHTMLFooter($footerHtml, 'E');
|
||||
}
|
||||
|
||||
$pdfHtml = '';
|
||||
$templateCss = trim((string) ($templateSettings['template_css'] ?? ''));
|
||||
if ($templateCss !== '') {
|
||||
$templateCss = (string) preg_replace('/@page(?:\s+[^{]+)?\s*\{[^{}]*\}/i', '', $templateCss);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user