Merge pull request #15866 from atm-maxime/fix_contactelement
Fix dict contact type element list
This commit is contained in:
commit
1960c712df
@ -1380,9 +1380,14 @@ function complete_elementList_with_modules(&$elementList)
|
||||
$dirmod[$i] = $dir;
|
||||
//print "x".$modName." ".$orders[$i]."\n<br>";
|
||||
|
||||
if (!empty($objMod->module_parts['contactelement']))
|
||||
{
|
||||
$elementList[$objMod->name] = $langs->trans($objMod->name);
|
||||
if (!empty($objMod->module_parts['contactelement'])) {
|
||||
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++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user