0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-02-12 09:18:42 +00:00
salesagility_SuiteCRM/modules/AOS_PDF_Templates/views/view.detail.php
Dillon-Brown 4ee7a709a0 Remove PHP4 constructors
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-26 21:50:24 +00:00

29 lines
698 B
PHP
Executable file

<?php
if (!defined('sugarEntry') || !sugarEntry) {
die('Not A Valid Entry Point');
}
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;', ' ', $this->bean->pdfheader));
$this->bean->description = html_entity_decode(str_replace('&nbsp;', ' ', $this->bean->description));
$this->bean->pdffooter = html_entity_decode(str_replace('&nbsp;', ' ', $this->bean->pdffooter));
}
}