Skip to content

Commit

Permalink
EZP-31811: Fixed deleted relation fieldtypes (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartek authored Aug 28, 2020
1 parent 12538a7 commit 66a408c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eZ/Publish/Core/Repository/Helper/RelationProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function processFieldRelations(
// Map existing relations for easier handling
$mappedRelations = [];
foreach ($existingRelations as $relation) {
if ($relation->type & Relation::FIELD) {
if ($relation->type & Relation::FIELD && null !== $relation->sourceFieldDefinitionIdentifier) {
$fieldDefinition = $contentType->getFieldDefinition($relation->sourceFieldDefinitionIdentifier);
if ($fieldDefinition !== null) {
$mappedRelations[Relation::FIELD][$fieldDefinition->id][$relation->destinationContentInfo->id] = $relation;
Expand Down

0 comments on commit 66a408c

Please # to comment.