Fix configurator email not being sent due to missing config
This commit is contained in:
+3
-3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user