Debug v20

This commit is contained in:
Laurent Destailleur
2024-05-17 13:28:50 +02:00
parent 0c26be8e56
commit 3575bb171d
3 changed files with 14 additions and 7 deletions

View File

@@ -4704,9 +4704,10 @@ function dol_trunc($string, $size = 40, $trunc = 'right', $stringencoding = 'UTF
* Return the picto for a data type
*
* @param string $key Key
* @param string $morecss Add more css to the object
* @return string Pïcto for the key
*/
function getPictoForType($key)
function getPictoForType($key, $morecss = '')
{
// Set array with type -> picto
$type2picto = array(
@@ -4740,10 +4741,10 @@ function getPictoForType($key)
);
if (!empty($type2picto[$key])) {
return img_picto('', $type2picto[$key], 'class="pictofixedwidth"');
return img_picto('', $type2picto[$key], 'class="pictofixedwidth'.($morecss ? ' '.$morecss : '').'"');
}
return img_picto('', 'generic', 'class="pictofixedwidth"');
return img_picto('', 'generic', 'class="pictofixedwidth'.($morecss ? ' '.$morecss : '').'"');
}