Problem/Motivation

I am using the Default Content Deploy module to export entities into code and I'm running into a normalization issue with taxonomy terms. I get the following error when exporting a top-level term (no parent).

Error: Call to a member function getEntityType() on null in Drupal\hal\Normalizer\EntityReferenceItemNormalizer->normalize() (line 86 of /var/www/html/dv13.openplus.ca/html/core/modules/hal/src/Normalizer/EntityReferenceItemNormalizer.php)

This is being caused by an existing drupal/core patch included with WxT. I have updated this patch to fix the issue and now want to update the patch in WxT.

Steps to reproduce

Use Drupal's serializer service against a top-level term using the hal_json format.

Example:

$term = \Drupal\taxonomy\Entity\Term::load('50');
$output = \Drupal::service('serializer')->serialize($term, 'hal_json');
dpm($output);
CommentFileSizeAuthor
#2 wxt-update-hal-patch-3302126-2.patch818 bytessmulvih2

Comments

smulvih2 created an issue. See original summary.

smulvih2’s picture

Status: Active » Needs review
StatusFileSize
new818 bytes

Updated core patch in WxT.

sylus’s picture

Status: Needs review » Fixed

Committed and attributed :)

  • sylus committed 1863d37 on 4.3.x authored by smulvih2
    Issue #3302126 by smulvih2: Core patch causing error when serializing...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.