diff --git a/lib/Controller/CatalogiController.php b/lib/Controller/CatalogiController.php index 83f26a89..35034282 100644 --- a/lib/Controller/CatalogiController.php +++ b/lib/Controller/CatalogiController.php @@ -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' ) { diff --git a/src/modals/metaData/AddMetaDataModal.vue b/src/modals/metaData/AddMetaDataModal.vue index 255706ef..a52f1dbc 100644 --- a/src/modals/metaData/AddMetaDataModal.vue +++ b/src/modals/metaData/AddMetaDataModal.vue @@ -24,7 +24,7 @@ import { navigationStore, metadataStore } from '../../store/store.js' + :value.sync="metaData.title" /> @@ -74,9 +74,9 @@ export default { title: '', version: '', description: '', + summary: '', required: '', }, - metaDataList: [], loading: false, success: null, error: false,