Transfer of customer order line extrafield should only transfer fields available in target
This commit is contained in:
parent
237270a27e
commit
f5e14c9d70
@ -1153,7 +1153,9 @@ if (empty($reshook))
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user