FIX: Invoice Thirdparty never loaded at this point

Attempt to read property "default_lang" on null in /var/www/html/fourn/class/paiementfourn.class.php on line 353
This commit is contained in:
BadPixxel 2023-03-31 13:15:44 +02:00 committed by GitHub
parent 28e2694bac
commit 57156dd022
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)) {