With line
$extralabels=$extrafields->fetch_name_optionals_label($object->table_element);
Answer:
What error? => crash PDF, HTTP ERROR 500
What is the extra field configuration ? => facture (facture_cust_extrafields.php) / Select lis:
1,lista1
2,lista2
3,lista3
Can you share the full model ? => (pdf_crabe.modules.php)
}
}
// EXTRAFIELD test Select list *******************************
$object->fetch($rowid);
$object->fetch_optionals($rowid,$extralabels);
$extrafields = new ExtraFields($db);
$extralabels=$extrafields->fetch_name_optionals_label($object->table_element);
$pdf->MultiCell(0, 3, 'LISTA: '.$outputlangs->convToOutputCharset($object->array_options['options_lista']), 0, 'L', 0);