Fix hide search label on computed field into lists

This commit is contained in:
Laurent Destailleur 2017-06-10 22:49:16 +02:00
parent acfaec684d
commit 4683ef41be

View File

@ -759,7 +759,11 @@ class ExtraFields
$list=$this->attribute_list[$key];
$hidden=$this->attribute_hidden[$key];
if ($computed) return '<span class="opacitymedium">'.$langs->trans("AutomaticallyCalculated").'</span>';
if ($computed)
{
if ($keysuffix != 'search_') return '<span class="opacitymedium">'.$langs->trans("AutomaticallyCalculated").'</span>';
else return '';
}
if (empty($showsize))
{