Skip to content

Commit

Permalink
Merge pull request #658 from UN-OCHA/RWR-304-nested
Browse files Browse the repository at this point in the history
bug: Nested paragraphs
  • Loading branch information
attiks authored Oct 10, 2023
2 parents 08f5cd1 + e654d03 commit 4a429cb
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 4a429cb

Please sign in to comment.