migration: cutting nosample location to memo #nosample
This commit is contained in:
parent
82e771574b
commit
c2a23a9e5b
|
@ -166,6 +166,19 @@ class D7NodeMateriau extends FieldableEntity {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//location (samples)
|
||||||
|
$locations = [];
|
||||||
|
if(!empty($row->getSourceProperty('field_location'))){
|
||||||
|
foreach ($row->getSourceProperty('field_location') as $key => $value) {
|
||||||
|
if ($value['location'] == 'no sample') {
|
||||||
|
$memo .= "#nosample (".$value["showroom_tid"].")\n";
|
||||||
|
}else{
|
||||||
|
$locations[] = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$row->setSourceProperty('field_location', $locations);
|
||||||
|
|
||||||
// workflow
|
// workflow
|
||||||
$query = $this->select('workflow_node', 'wn');
|
$query = $this->select('workflow_node', 'wn');
|
||||||
$query->fields('wn', ['sid']);
|
$query->fields('wn', ['sid']);
|
||||||
|
|
Loading…
Reference in New Issue