Bienvenido a los foros %s

Foro comunidad hispana Dolibarr

Identificarse Registrarse

Sugerencia para archivo skeleton_list.php

Háganos saber sus sugerencias y propuestas de nuevas características.
ramiroques
Novato
Mensajes: 40
Registrado: Jue, 13/12/2012, 14:13
Ubicación: Bolivia

Sugerencia para archivo skeleton_list.php

Mensaje por ramiroques »

Version 5.0.6

En la linea 444 del archivo skeleton_list.php se tiene un foreach para listar
Sugiero reemplazar y/o agregar este codigo

// LIST_OF_TD_FIELDS_LIST
foreach ($arrayfields as $key => $value) {
if (!empty($arrayfields[$key]['checked'])) {
//$key2 = str_replace('t.', '', $key);
$aKey = explode('.',$key);
$key2 = $aKey[1];
if ($key2 == 'ref')
{
$object->id = $obj->id;
$object->ref = $obj->ref;
$object->label = $obj->label;
$obj->$key2 = $object->getNomUrl();
}
if ($key2 == 'active')
{
$img = 'switch_off';
if ($obj->$key2) $img = 'switch_on';
$obj->$key2 = img_picto('',$img);
}
if ($key2 == 'status')
{
$object->status = $obj->$key2;
$obj->$key2 = $object->getLibStatut(3);
}

print '<td>' . $obj->$key2 . '</td>';
if (!$i)
$totalarray['nbfield'] ++;
}
}

saludos a todos