Update dict.php close #32271

This commit is contained in:
Frédéric FRANCE 2024-12-08 10:17:51 +01:00 committed by GitHub
parent 226ecdc157
commit 5890837e03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1316,7 +1316,26 @@ if ($id > 0) {
$tablecode = 't.code';
$tableprefix = '';
$tableprefixarray = array(DICT_FORME_JURIDIQUE => 'f.code', DICT_DEPARTEMENTS => 'd.code_departement', DICT_REGIONS => 'r.code_region', DICT_COUNTRY => 'c.code', DICT_CIVILITY => 'c.code', DICT_ACTIONCOMM => 'a.code', DICT_CURRENCIES => 'code_iso', DICT_ECOTAXE => 'e.code', DICT_HOLIDAY_TYPES => 'h.code', DICT_CHARGESOCIALES => 'a.code', DICT_HRM_PUBLIC_HOLIDAY => 'a.code', DICT_UNITS => 'r.code', DICT_SOCIALNETWORKS => 's.code', 45 => 'f.code', 46 => 'f.code', 47 => 'f.code', 48 => 'f.code');
$tableprefixarray = array(
DICT_FORME_JURIDIQUE => 'f.code',
DICT_DEPARTEMENTS => 'd.code_departement',
DICT_REGIONS => 'r.code_region',
DICT_COUNTRY => 'c.code',
DICT_CIVILITY => 'c.code',
DICT_ACTIONCOMM => 'a.code',
DICT_CHARGESOCIALES => 'a.code',
DICT_TYPENT => 't.code',
DICT_CURRENCIES => 'code_iso',
DICT_ECOTAXE => 'e.code',
DICT_HOLIDAY_TYPES => 'h.code',
DICT_HRM_PUBLIC_HOLIDAY => 'a.code',
DICT_UNITS => 'r.code',
DICT_SOCIALNETWORKS => 's.code',
45 => 'f.code',
46 => 'f.code',
47 => 'f.code',
48 => 'f.code',
);
if (!empty($tableprefixarray[$id])) {
$tablecode = $tableprefixarray[$id];
$tableprefix = preg_replace('/\..*$/', '.', $tablecode);