Merge pull request #24403 from BadPixxel/patch-9

FIX: Invoice Thirdparty never loaded at this point
This commit is contained in:
Laurent Destailleur 2023-03-31 18:12:58 +02:00 committed by GitHub
commit 63947b4ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -362,6 +362,7 @@ class PaiementFourn extends Paiement
$newlang = '';
$outputlangs = $langs;
if (getDolGlobalInt('MAIN_MULTILANGS') && empty($newlang)) {
$invoice->fetch_thirdparty();
$newlang = $invoice->thirdparty->default_lang;
}
if (!empty($newlang)) {