Merge pull request #19215 from FHenry/14_fix_catagorie_method

fix: getFilterSelectQuery get correct table
This commit is contained in:
Laurent Destailleur 2021-10-31 16:13:36 +01:00 committed by GitHub
commit 15406f16d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1963,6 +1963,12 @@ class Categorie extends CommonObject
if ($type == 'bank_account') {
$type = 'account';
}
if ($type == 'customer') {
$type = 'societe';
}
if ($type == 'supplier') {
$type = 'fournisseur';
}
if (empty($searchList) && !is_array($searchList)) {
return "";