|
@@ -179,6 +179,13 @@ class D7NodeMateriau extends FieldableEntity {
|
|
|
}
|
|
|
$row->setSourceProperty('field_location', $locations);
|
|
|
|
|
|
+ // reference
|
|
|
+ if(!empty($row->getSourceProperty('field_reference_materio'))){
|
|
|
+ $ref = $row->getSourceProperty('field_reference_materio')[0]['value'];
|
|
|
+ $ref = str_replace('-','',$ref);
|
|
|
+ $row->setSourceProperty('field_reference_materio', [["value"=>$ref]]);
|
|
|
+ }
|
|
|
+
|
|
|
// workflow
|
|
|
$query = $this->select('workflow_node', 'wn');
|
|
|
$query->fields('wn', ['sid']);
|