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:
parent
28e2694bac
commit
57156dd022
@ -362,6 +362,7 @@ class PaiementFourn extends Paiement
|
|||||||
$newlang = '';
|
$newlang = '';
|
||||||
$outputlangs = $langs;
|
$outputlangs = $langs;
|
||||||
if (getDolGlobalInt('MAIN_MULTILANGS') && empty($newlang)) {
|
if (getDolGlobalInt('MAIN_MULTILANGS') && empty($newlang)) {
|
||||||
|
$invoice->fetch_thirdparty();
|
||||||
$newlang = $invoice->thirdparty->default_lang;
|
$newlang = $invoice->thirdparty->default_lang;
|
||||||
}
|
}
|
||||||
if (!empty($newlang)) {
|
if (!empty($newlang)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user