Skip to content

Commit

Permalink
LOYALIST-58 Move to body_value
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobSanford committed Jul 11, 2024
1 parent cafd21c commit cf11cdf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,15 @@ process:
body:
-
plugin: sub_process
source: body
source: body_value
process:
value: value
format:
plugin: default_value
default_value: wysiwyg
summary:
plugin: default_value
default_value: ''

destination:
plugin: 'entity:node'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function query()
$query->addField('n', 'title', 'title');

$query->leftJoin('field_data_body', 'fbody', 'n.nid = fbody.entity_id AND fbody.deleted = 0');
$query->addField('fbody', 'body_value', 'body');
$query->addField('fbody', 'body_value', 'body_value');

$query->leftJoin('field_data_field_accompanying_record', 'fac', 'n.nid = fac.entity_id AND fac.deleted = 0');
$query->addField('fac', 'field_accompanying_record_value', 'field_accompanying_record_value');
Expand Down Expand Up @@ -62,7 +62,7 @@ public function fields()
'issuing_body_name' => 'issuing_body_name',
'subject_heading_name' => 'subject_heading_name',
'field_other_numbers_value' => 'field_other_numbers_value',
'body' => 'body',
'body_value' => 'body_value',
];
return $fields;
}
Expand Down

0 comments on commit cf11cdf

Please sign in to comment.