diff --git a/dev/skeletons/skeleton_list.php b/dev/skeletons/skeleton_list.php
index 28333b3edee..3c47498c52e 100644
--- a/dev/skeletons/skeleton_list.php
+++ b/dev/skeletons/skeleton_list.php
@@ -322,10 +322,22 @@ if ($resql)
// Extra fields
if (is_array($extrafields->attribute_label) && count($extrafields->attribute_label))
{
- foreach($extrafields->attribute_label as $key => $val)
- {
- if (! empty($arrayfields["ef.".$key]['checked'])) print '
| ';
- }
+ foreach($extrafields->attribute_label as $key => $val)
+ {
+ if (! empty($arrayfields["ef.".$key]['checked']))
+ {
+ $align=$extrafields->getAlignFlag($key);
+ $typeofextrafield=$extrafields->attribute_type[$key];
+ print '';
+ if (in_array($typeofextrafield, array('varchar', 'int', 'select')))
+ {
+ $crit=$val;
+ $tmpkey=preg_replace('/search_options_/','',$key);
+ print '';
+ }
+ print ' | ';
+ }
+ }
}
// Fields from hook
$parameters=array('arrayfields'=>$arrayfields);
diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php
index 0108ff1b55b..1b2a515695b 100644
--- a/htdocs/societe/list.php
+++ b/htdocs/societe/list.php
@@ -778,9 +778,9 @@ if ($resql)
{
if (! empty($arrayfields["ef.".$key]['checked']))
{
- $typeofextrafield=$extrafields->attribute_type[$key];
- if (in_array($typeofextrafield, array('int'))) print '';
- else print ' | ';
+ $align=$extrafields->getAlignFlag($key);
+ $typeofextrafield=$extrafields->attribute_type[$key];
+ print ' | ';
if (in_array($typeofextrafield, array('varchar', 'int', 'select')))
{
$crit=$val;
|