Skip to content

Commit

Permalink
Merge pull request #9668 from atm-greg/Fix_pdf_generation
Browse files Browse the repository at this point in the history
fix error 500 on pdf_generation
  • Loading branch information
eldy committed Oct 4, 2018
2 parents 4c8664b + 583ea05 commit 9e39720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/lib/pdf.lib.php
Expand Up @@ -438,7 +438,7 @@ function pdf_build_address($outputlangs,$sourcecompany,$targetcompany='',$target
// Contact on a thirdparty that is a different thirdparty than the thirdparty of object
if ($targetcontact->socid > 0 && $targetcontact->socid != $targetcompany->id)
{
$targetcontact->fetch_thirparty();
$targetcontact->fetch_thirdparty();
$companytouseforaddress = $targetcontact->thirdparty;
}

Expand Down

0 comments on commit 9e39720

Please sign in to comment.