2
0
forked from Wavyzz/dolibarr

Merge pull request #25974 from lamrani002/imageType

New picto for type for properties objects in modulebuilder
This commit is contained in:
Laurent Destailleur
2023-09-19 22:44:45 +02:00
committed by GitHub

View File

@@ -4321,7 +4321,19 @@ if ($module == 'initmodule') {
print '</td>';
} else {
print '<td class="tdoverflowmax200">';
print '<span title="'.dol_escape_htmltag($proptype).'">'.dol_escape_htmltag($proptype).'</span>';
$pictoType = '';
if (preg_match('/(varchar)/', $proptype, $matches)) {
$pictoType = $matches[1];
}if (strpos($proptype, 'integer') === 0) {
$pictoType = substr($proptype, 0, 3);
}
if (strpos($proptype, 'timestamp') === 0) {
$pictoType = 'datetime';
}
if (strpos($proptype, 'real') === 0) {
$pictoType = 'double';
}
print (!empty($pictoType) ? getPictoForType($pictoType) : getPictoForType($proptype)).'<span title="'.dol_escape_htmltag($proptype).'">'.dol_escape_htmltag($proptype).'</span>';
print '</td>';
print '<td class="tdoverflowmax200">';
if ($proparrayofkeyval) {