Skip to content

Commit

Permalink
bug: Nested paragraphs
Browse files Browse the repository at this point in the history
Refs: #RWR-304
  • Loading branch information
attiks committed Oct 10, 2023
1 parent 08f5cd1 commit e654d03
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ public function render(ResultRow $values) {
}

$revision_id = $linked_entity->getRevisionId();
if ($linked_entity->getEntityTypeId() === 'paragraph' && $linked_entity->getParentEntity() !== NULL) {
while ($linked_entity->getEntityTypeId() === 'paragraph' && $linked_entity->getParentEntity() !== NULL) {
$linked_entity = $linked_entity->getParentEntity();

$previous_revision = TRUE;
$field_names = [];
foreach ($linked_entity->getFields() as $field) {
Expand Down

0 comments on commit e654d03

Please sign in to comment.