0
0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2024-11-22 07:52:36 +00:00
salesagility_SuiteCRM/modules/AOS_PDF_Templates/views/view.detail.php
2023-07-18 15:53:09 +01:00

31 lines
752 B
PHP
Executable File

<?php
if (!defined('sugarEntry') || !sugarEntry) {
die('Not A Valid Entry Point');
}
#[\AllowDynamicProperties]
class AOS_PDF_TemplatesViewDetail extends ViewDetail
{
public function __construct()
{
parent::__construct();
}
public function display()
{
$this->setDecodeHTML();
parent::display();
}
public function setDecodeHTML()
{
$this->bean->pdfheader = html_entity_decode(str_replace('&nbsp;', ' ', (string) $this->bean->pdfheader));
$this->bean->description = html_entity_decode(str_replace('&nbsp;', ' ', (string) $this->bean->description));
$this->bean->pdffooter = html_entity_decode(str_replace('&nbsp;', ' ', (string) $this->bean->pdffooter));
}
}