Skip to content

Commit

Permalink
Merge pull request #2 from markuspfeifenberger/master
Browse files Browse the repository at this point in the history
BUGFIX: Set missing dimensionConfiguration['default'] value
  • Loading branch information
kdambekalns authored Jan 31, 2019
2 parents c9ca2ed + a29e18c commit f9e44af
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Classes/Service/ConfigurationContentDimensionPresetSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = '';
}
Expand Down

0 comments on commit f9e44af

Please sign in to comment.