Skip to content

Commit

Permalink
Fix bug in user and taxonomy term export
Browse files Browse the repository at this point in the history
  • Loading branch information
taylor-steve committed Jun 27, 2023
1 parent 3982167 commit 0cd963d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,15 @@ protected function exportEntityReference(EntityFieldExportEvent $event, $field,
if ($user = $this->entityTypeManager->getStorage($target_type)->load($id)) {
/** @var \Drupal\user\UserInterface $user */
$export[] = $user->getAccountName();
continue;
}
}

if ($target_type == 'taxonomy_term' && $option == 'name') {
if ($term = $this->entityTypeManager->getStorage($target_type)->load($id)) {
/** @var \Drupal\taxonomy\TermInterface $term */
$export[] = $term->getName();
continue;
}
}
}
Expand Down

0 comments on commit 0cd963d

Please sign in to comment.