From 42701becb131d24296de17df0b26530e3eb31ff9 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Tue, 27 Feb 2024 10:19:59 +0100 Subject: [PATCH] bugfix getStyleElement = 0 --- www/lib/dokumente/class.briefpapier.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/www/lib/dokumente/class.briefpapier.php b/www/lib/dokumente/class.briefpapier.php index 823f6f93..dcecb9b2 100644 --- a/www/lib/dokumente/class.briefpapier.php +++ b/www/lib/dokumente/class.briefpapier.php @@ -1812,7 +1812,7 @@ class Briefpapier extends SuperFPDF { $result = $this->app->erp->Firmendaten($key); } if (empty($result)) { - $result = 0; + $result = null; } return($result); } @@ -2027,13 +2027,15 @@ class Briefpapier extends SuperFPDF { //FREITEXT1 $freitext1aktiv = $this->getStyleElement('freitext1aktiv'); if($freitext1aktiv){ + $freitext1inhalt = $this->app->erp->Beschriftung("freitext1inhalt"); + if($freitext1inhalt=="") $freitext1inhalt = $this->getStyleElement('freitext1inhalt'); if (!empty($this->table)) { $freitext1inhalt = $this->app->erp->ParseUserVars($this->table,$this->id,$freitext1inhalt); } - + $freitext1inhalt = $this->app->erp->ReadyForPDF($freitext1inhalt); $freitext1schriftgroesse = $this->getStyleElement('freitext1schriftgroesse'); $freitext1y = $this->getStyleElement('freitext1y');