From d2f8f2d434b37ac4792da85483c6e18c9efd1017 Mon Sep 17 00:00:00 2001 From: Remko Date: Thu, 28 Nov 2024 10:22:11 +0100 Subject: [PATCH 1/2] fixed missing theme from not showing --- src/views/publications/PublicationDetail.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/publications/PublicationDetail.vue b/src/views/publications/PublicationDetail.vue index bb8b5529..060a53bd 100644 --- a/src/views/publications/PublicationDetail.vue +++ b/src/views/publications/PublicationDetail.vue @@ -329,7 +329,7 @@ import { ref } from 'vue' -
+
-
+
Geen thema's gevonden
From b1891de710d90fb9135a29e63b9ed521b77b5dd1 Mon Sep 17 00:00:00 2001 From: Barry Brands Date: Wed, 4 Dec 2024 14:34:30 +0100 Subject: [PATCH 2/2] Check for publicationType before validating --- lib/Service/ValidationService.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/Service/ValidationService.php b/lib/Service/ValidationService.php index be1fca22..9ce35df0 100644 --- a/lib/Service/ValidationService.php +++ b/lib/Service/ValidationService.php @@ -36,7 +36,8 @@ public function __construct( * Validate a publication to the definition defined in the PublicationType. * * @param Publication $publication The publication to validate. - * @return Publication The validated publication. + * + * @return array The validated publication. * * @throws DoesNotExistException * @throws MultipleObjectsReturnedException @@ -45,6 +46,10 @@ public function __construct( */ public function validatePublication(array $publication): array { + if (isset($publication['publicationType']) === false) { + return $publication; + } + $publicationTypeId = $publication['publicationType']; $publicationType = $this->objectService->getObject(objectType: 'publicationType', id: $publicationTypeId);