Fix configurator email not being sent due to missing config

This commit is contained in:
Björn Fromme
2018-09-20 15:33:28 +02:00
parent 237f0cea92
commit b329ded8a9
6 changed files with 104 additions and 57 deletions
@@ -41,6 +41,7 @@ class ConfiguratorTypeLabelsViewHelper extends AbstractViewHelper
parent::initializeArguments();
$this->registerArgument('type', 'string', 'The type', true);
$this->registerArgument('config', 'array', 'The config', true);
$this->registerArgument('values', 'string', 'The labels', true);
}
@@ -61,12 +62,11 @@ class ConfiguratorTypeLabelsViewHelper extends AbstractViewHelper
}
$types = [];
$indexes = GeneralUtility::trimExplode(',', $arguments['values']);
$templateVariableContainer = $renderingContext->getVariableProvider();
$settings = $templateVariableContainer['settings'];
$type = $arguments['type'];
$config = $arguments['config'];
foreach ($indexes as $index)
{
$types[] = $settings['configurator']['options'][$type][$index];
$types[] = $config[$type][$index];
}
return implode(', ', $types);
}