PHRAS-939 #time 2d

- fix archive task with doc+xml :
xml data data targeting a field without "source" -for a record inside a story- are now present in the newly created record.
This commit is contained in:
Jean-Yves Gaulier
2016-03-07 18:37:54 +01:00
committed by Benoît Burnichon
parent 58ed1e7c5e
commit ddce5a82dd

View File

@@ -20,7 +20,7 @@ class PhraseanetMetadataSetter
$metadatas = [];
$tagnameToFieldnameMapping = [];
$arrayStructure = iterator_to_array($record->get_databox()->get_meta_structure());
$arrayStructure = iterator_to_array($record->get_collection()->get_databox()->get_meta_structure());
array_walk($arrayStructure, function ($databoxField) use (&$tagnameToFieldnameMapping) {
$tagname = $databoxField->get_tag()->getTagname();