Line 424:
Line 424:
$linecf = new stdClass();
$linecf = new stdClass();
$linecf->id = $line->rowid;
$linecf->id = $line->rowid;
−
$linecf->table_element = 'facturedet';
+
$linecf->table_element = 'facturedet'; // you can use $this->table_element_line here instead of 'facturedet' if you want this feature to work for every module supported by CustomFields
$customfields = customfields_fill_object($linecf);
$customfields = customfields_fill_object($linecf);