From 61878d3b8a2739ba0bbe48222c8040e9bd724172 Mon Sep 17 00:00:00 2001 From: Beatrycze Volk Date: Wed, 29 May 2024 11:08:22 +0200 Subject: [PATCH] Rename configuration for `requiredMetadataFields` --- Classes/Command/BaseCommand.php | 2 +- ext_conf_template.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Command/BaseCommand.php b/Classes/Command/BaseCommand.php index de3906dc8..71f822781 100644 --- a/Classes/Command/BaseCommand.php +++ b/Classes/Command/BaseCommand.php @@ -217,7 +217,7 @@ protected function saveToDatabase(Document $document): bool $doc->cPid = $this->storagePid; $metadata = $doc->getToplevelMetadata($this->storagePid); - $validator = new DocumentValidator($metadata, explode(',', $this->extConf['requiredMetadataFields'])); + $validator = new DocumentValidator($metadata, explode(',', $this->extConf['general']['requiredMetadataFields'])); if ($validator->hasAllMandatoryMetadataFields()) { // set title data diff --git a/ext_conf_template.txt b/ext_conf_template.txt index 0e3489789..484353b12 100644 --- a/ext_conf_template.txt +++ b/ext_conf_template.txt @@ -14,7 +14,7 @@ general.publishNewCollections = 1 general.unhideOnIndex = 0 # cat=General; type=boolean; label=LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:config.general.useExternalApisForMetadata general.useExternalApisForMetadata = 0 -# cat=General; type=string; label=LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:config.requiredMetadataFields +# cat=General; type=string; label=LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:config.general.requiredMetadataFields general.requiredMetadataFields = document_format,record_id # cat=Files; type=string; label=LLL:EXT:dlf/Resources/Private/Language/locallang_labels.xlf:config.files.fileGrpImages files.fileGrpImages = DEFAULT,MAX