Merge pull request #9668 from atm-greg/Fix_pdf_generation

fix error 500 on pdf_generation
This commit is contained in:
Laurent Destailleur 2018-10-04 17:27:29 +02:00 committed by GitHub
commit 9e397206d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}