Skip to content

Commit

Permalink
bugfix getStyleElement = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenXE committed Feb 27, 2024
1 parent 4b9fa3f commit 42701be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions www/lib/dokumente/class.briefpapier.php
Original file line number Diff line number Diff line change
Expand Up @@ -1812,7 +1812,7 @@ private function getStyleElement($key){
$result = $this->app->erp->Firmendaten($key);
}
if (empty($result)) {
$result = 0;
$result = null;
}
return($result);
}
Expand Down Expand Up @@ -2027,13 +2027,15 @@ public function renderRecipient(){
//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');
Expand Down

0 comments on commit 42701be

Please sign in to comment.