Skip to content

Commit

Permalink
Merge pull request #150 from ConductionNL/development
Browse files Browse the repository at this point in the history
Dev to master
  • Loading branch information
bbrands02 authored Dec 4, 2024
2 parents a10d8b9 + afd8118 commit 078da9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion lib/Service/ValidationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions src/views/publications/PublicationDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ import { ref } from 'vue'
</div>
</BTab>
<BTab title="Thema's">
<div v-if="filteredThemes?.length">
<div v-if="filteredThemes?.length || missingThemes?.length">
<NcListItem v-for="(value, key, i) in filteredThemes"
:key="`${value.id}${i}`"
:name="value.title"
Expand Down Expand Up @@ -382,7 +382,7 @@ import { ref } from 'vue'
</template>
</NcListItem>
</div>
<div v-if="!filteredThemes?.length" class="tabPanel">
<div v-if="!filteredThemes?.length && !missingThemes?.length" class="tabPanel">
Geen thema's gevonden
</div>
</BTab>
Expand Down

0 comments on commit 078da9f

Please sign in to comment.