This commit is contained in:
Laurent Destailleur 2017-08-23 16:57:07 +02:00
parent 947acfffe2
commit 1b1d1a8d0b

View File

@ -168,10 +168,13 @@ if (empty($reshook))
} }
// Merge extrafields // Merge extrafields
if (is_array($soc_origin->array_options))
{
foreach ($soc_origin->array_options as $key => $val) foreach ($soc_origin->array_options as $key => $val)
{ {
if (empty($object->array_options[$key])) $object->array_options[$key] = $val; if (empty($object->array_options[$key])) $object->array_options[$key] = $val;
} }
}
// TODO Merge categories // TODO Merge categories
$object->update($object->id, $user); $object->update($object->id, $user);