Skip to content

Commit

Permalink
Rename configuration for requiredMetadataFields
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed May 29, 2024
1 parent 4fd4745 commit 61878d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Command/BaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ext_conf_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61878d3

Please sign in to comment.