Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
- Creating catalogi
- Creating publicatie typen
  • Loading branch information
rubenvdlinde committed Aug 13, 2024
1 parent d89b68e commit 5901d6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lib/Controller/CatalogiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ public function create(ObjectService $objectService, DirectoryService $directory
}
}

// @todo dit is alleen omdat er een onredenlijke verplichting aan de database is toegeveoegd
if(array_key_exists('metadata',$data) === false){
$data['metadata'] = [];
}

if($this->config->hasKey($this->appName, 'mongoStorage') === false
|| $this->config->getValueString($this->appName, 'mongoStorage') !== '1'
) {
Expand Down
4 changes: 2 additions & 2 deletions src/modals/metaData/AddMetaDataModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { navigationStore, metadataStore } from '../../store/store.js'
<NcTextField
label="Titel"
required="true"
value.sync="metaData.title" />
:value.sync="metaData.title" />
<NcTextField
label="Versie"
:value.sync="metaData.version" />
Expand Down Expand Up @@ -74,9 +74,9 @@ export default {
title: '',
version: '',
description: '',
summary: '',
required: '',
},
metaDataList: [],
loading: false,
success: null,
error: false,
Expand Down

0 comments on commit 5901d6b

Please sign in to comment.