From 7e77beab183aab955b3a36b9995b90332fb903f4 Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Tue, 13 Jun 2023 20:58:34 +0200 Subject: [PATCH] fix: fix ModuleFamilySummaryViewHelper (#6682) --- .../Web/ViewHelpers/ModuleFamilySummaryViewHelper.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Domains/Contact/ManageRelationships/Web/ViewHelpers/ModuleFamilySummaryViewHelper.php b/app/Domains/Contact/ManageRelationships/Web/ViewHelpers/ModuleFamilySummaryViewHelper.php index 03113f71c71..b917456041a 100644 --- a/app/Domains/Contact/ManageRelationships/Web/ViewHelpers/ModuleFamilySummaryViewHelper.php +++ b/app/Domains/Contact/ManageRelationships/Web/ViewHelpers/ModuleFamilySummaryViewHelper.php @@ -72,6 +72,10 @@ private static function getRelations(EloquentCollection $collection, Contact $co $relatedContact = Contact::find($relation->contact_id); } + if ($relatedContact === null) { + continue; + } + $relationshipsCollection->push([ 'id' => $counter, 'contact' => self::getContact($relatedContact),