Merge pull request #32844 from hregis/fix_21_wrong_table_name

FIX wrong table name
This commit is contained in:
Laurent Destailleur 2025-01-29 16:50:34 +01:00 committed by GitHub
commit 1b9274b288
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -439,7 +439,7 @@ class AccountancyCategory // extends CommonObject
{
global $conf;
$sql = "SELECT t.rowid, t.account_number, t.label";
$sql .= " FROM ".$this->db->prefix().$this->table_element." as t";
$sql .= " FROM ".$this->db->prefix()."accounting_account as t";
$sql .= " WHERE t.fk_accounting_category = ".((int) $id);
$sql .= " AND t.entity = ".$conf->entity;