Skip to content

Commit

Permalink
Transfer of customer order line extrafield should only transfer field…
Browse files Browse the repository at this point in the history
…s available in target
  • Loading branch information
fappels committed Sep 5, 2017
1 parent 237270a commit f5e14c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/compta/facture.php
Expand Up @@ -1153,7 +1153,9 @@

// Extrafields
if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED) && method_exists($lines[$i], 'fetch_optionals')) {
$lines[$i]->fetch_optionals($lines[$i]->rowid);
$extrafields = new ExtraFields($db);
$targetExtraLabels = $extrafields->fetch_name_optionals_label($object->table_element_line);
$lines[$i]->fetch_optionals($lines[$i]->rowid, $targetExtraLabels);
$array_options = $lines[$i]->array_options;
}

Expand Down

0 comments on commit f5e14c9

Please sign in to comment.