migration materiau:thesaurus,tags,manufacturer,distributors,video; better admin node view
This commit is contained in:
@@ -109,8 +109,8 @@ class D7NodeMateriau extends FieldableEntity {
|
||||
$nid = $row->getSourceProperty('nid');
|
||||
$vid = $row->getSourceProperty('vid');
|
||||
$type = $row->getSourceProperty('type');
|
||||
|
||||
drush_print('-- '.$language."\t".$nid);
|
||||
$title = $row->getSourceProperty('title');
|
||||
drush_print('-- '.$nid."\t".$title);
|
||||
|
||||
// If this entity was translated using Entity Translation, we need to get
|
||||
// its source language to get the field values in the right language.
|
||||
@@ -119,8 +119,6 @@ class D7NodeMateriau extends FieldableEntity {
|
||||
$entity_translatable = $this->isEntityTranslatable('node') && (int) $this->variableGet('language_content_type_' . $type, 0) === 4;
|
||||
$language = $entity_translatable ? $this->getEntityTranslationSourceLanguage('node', $nid) : $row->getSourceProperty('language');
|
||||
|
||||
|
||||
|
||||
// Get Field API field values.
|
||||
foreach ($this->getFields('node', $type) as $field_name => $field) {
|
||||
// Ensure we're using the right language if the entity and the field are
|
||||
@@ -128,6 +126,9 @@ class D7NodeMateriau extends FieldableEntity {
|
||||
$field_language = $entity_translatable && $field['translatable'] ? $language : NULL;
|
||||
$row->setSourceProperty($field_name, $this->getFieldValues('node', $field_name, $nid, $vid, $field_language));
|
||||
}
|
||||
if(!empty($row->getSourceProperty('field_video_filter'))){
|
||||
print_r($row->getSourceProperty('field_video_filter'));
|
||||
}
|
||||
|
||||
// Make sure we always have a translation set.
|
||||
if ($row->getSourceProperty('tnid') == 0) {
|
||||
|
||||
Reference in New Issue
Block a user