From a29e18c187e0f8dcab86c12ee1985cf93dc5ce2f Mon Sep 17 00:00:00 2001 From: Markus Pfeifenberger Date: Wed, 14 Nov 2018 17:24:04 +0100 Subject: [PATCH] [task] Set missing dimensionConfiguration['default'] value --- .../Service/ConfigurationContentDimensionPresetSource.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Classes/Service/ConfigurationContentDimensionPresetSource.php b/Classes/Service/ConfigurationContentDimensionPresetSource.php index b6622fc..09cc69b 100644 --- a/Classes/Service/ConfigurationContentDimensionPresetSource.php +++ b/Classes/Service/ConfigurationContentDimensionPresetSource.php @@ -73,6 +73,13 @@ protected function initializeObject() $dimensionConfiguration['defaultPreset'] = $newDefaultPreset; + if (isset( + $dimensionConfiguration['presets'][$newDefaultPreset], + $dimensionConfiguration['presets'][$newDefaultPreset]['values'] + )) { + $dimensionConfiguration['default'] = implode(',', $dimensionConfiguration['presets'][$newDefaultPreset]['values']); + } + if ($this->forceEmptyUriSegment === true) { $dimensionConfiguration['presets'][$newDefaultPreset]['uriSegment'] = ''; }