From f0572b02afabcea95a880a2dc0b807bfb390b28b Mon Sep 17 00:00:00 2001 From: Markus Klein Date: Thu, 6 Jul 2023 18:56:54 +0200 Subject: [PATCH] [BUGFIX] Allow multiple Skill(Set) uids in CE --- Classes/Frontend/DataProcessing/SkillSets.php | 2 +- Classes/Frontend/DataProcessing/Skills.php | 2 +- Configuration/TCA/Overrides/tt_content.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/Frontend/DataProcessing/SkillSets.php b/Classes/Frontend/DataProcessing/SkillSets.php index d8255fb..0b39b70 100644 --- a/Classes/Frontend/DataProcessing/SkillSets.php +++ b/Classes/Frontend/DataProcessing/SkillSets.php @@ -48,7 +48,7 @@ class SkillSets implements DataProcessorInterface $as = $cObj->stdWrapValue('as', $processorConfiguration, 'skillSets'); $skillSetIds = GeneralUtility::intExplode( ',', - $cObj->stdWrapValue('skillSets', $processorConfiguration), + (string)$cObj->stdWrapValue('skillSets', $processorConfiguration), true ); $skillSets = []; diff --git a/Classes/Frontend/DataProcessing/Skills.php b/Classes/Frontend/DataProcessing/Skills.php index 7ddbc31..119510d 100644 --- a/Classes/Frontend/DataProcessing/Skills.php +++ b/Classes/Frontend/DataProcessing/Skills.php @@ -48,7 +48,7 @@ class Skills implements DataProcessorInterface $as = $cObj->stdWrapValue('as', $processorConfiguration, 'skills'); $skillIds = GeneralUtility::intExplode( ',', - $cObj->stdWrapValue('skills', $processorConfiguration), + (string)$cObj->stdWrapValue('skills', $processorConfiguration), true ); $skills = []; diff --git a/Configuration/TCA/Overrides/tt_content.php b/Configuration/TCA/Overrides/tt_content.php index 6e9cf4d..408fa1b 100644 --- a/Configuration/TCA/Overrides/tt_content.php +++ b/Configuration/TCA/Overrides/tt_content.php @@ -28,7 +28,7 @@ 'description' => $languagePath . 'skilldisplay_skillset.description', 'config' => [ 'type' => 'input', - 'eval' => 'int,required', + 'eval' => 'required', 'size' => 10, ], ],