Skip to content

Commit

Permalink
drop eel evaluation on properties with value of type array
Browse files Browse the repository at this point in the history
  • Loading branch information
pkaminski-at-180hb committed Jan 27, 2021
1 parent f1667d2 commit fd7f033
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ public function isApplicable(array $context)
protected function setProperties(NodeInterface $node, array $context)
{
foreach ($this->properties as $propertyName => $propertyValue) {
if (preg_match(\Neos\Eel\Package::EelExpressionRecognizer, $propertyValue)) {
//evaluate Eel only on string properties
if (is_string($propertyValue) && preg_match(\Neos\Eel\Package::EelExpressionRecognizer, $propertyValue)) {
$this->persistenceManager->persistAll();
$propertyValue = $this->eelEvaluationService->evaluateEelExpression($propertyValue, $context);
}
Expand Down

0 comments on commit fd7f033

Please sign in to comment.