FIX accountancy closure: if subledger_label is not found, PHP8.2 throws an error. (#34736)
This commit is contained in:
parent
704173f4a6
commit
abc7f824d7
1 changed files with 1 additions and 1 deletions
|
|
@ -2822,7 +2822,7 @@ class BookKeeping extends CommonObject
|
|||
$error++;
|
||||
}
|
||||
$objtmp = $this->db->fetch_object($result);
|
||||
$bookkeeping->subledger_label = $objtmp->subledger_label; // latest subledger label used
|
||||
$bookkeeping->subledger_label = $objtmp->subledger_label ?? null; // latest subledger label used
|
||||
} else {
|
||||
$bookkeeping->subledger_account = null;
|
||||
$bookkeeping->subledger_label = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue