From 57156dd022ed6ac7007edae36935546a7a9f744e Mon Sep 17 00:00:00 2001 From: BadPixxel Date: Fri, 31 Mar 2023 13:15:44 +0200 Subject: [PATCH] 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 --- htdocs/fourn/class/paiementfourn.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/fourn/class/paiementfourn.class.php b/htdocs/fourn/class/paiementfourn.class.php index e3b7be2c42a..b587922b71d 100644 --- a/htdocs/fourn/class/paiementfourn.class.php +++ b/htdocs/fourn/class/paiementfourn.class.php @@ -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)) {