Fix dict contact type element list

This commit is contained in:
Maxime Kohlhaas 2021-01-03 16:05:04 +01:00
parent 8ad5dc81de
commit e190b010d3

View File

@ -1382,7 +1382,14 @@ function complete_elementList_with_modules(&$elementList)
if (!empty($objMod->module_parts['contactelement']))
{
$elementList[$objMod->name] = $langs->trans($objMod->name);
if(is_array($objMod->module_parts['contactelement'])) {
foreach ($objMod->module_parts['contactelement'] as $elem => $title) {
$elementList[$elem] = $langs->trans($title);
}
}
else {
$elementList[$objMod->name] = $langs->trans($objMod->name);
}
}
$j++;