Skip to content

Commit

Permalink
reverted change of #5390 to fix #5504
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Fasching committed Dec 27, 2019
1 parent ab37736 commit cedfbaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/DataObject/ClassDefinition/Data/CalculatedValue.php
Expand Up @@ -363,7 +363,7 @@ public function getGetterCodeLocalizedfields($class)
}

$code .= "\t" . '$data' . " = new \\Pimcore\\Model\\DataObject\\Data\\CalculatedValue('" . $key . "');\n";
$code .= "\t" . '$data->setContextualData("'.$ownerType.'", $this->getFieldname(), '.($index===null?'null':'"'.$index.'"').', $language, null, null, $fieldDefinition);' . "\n";
$code .= "\t" . '$data->setContextualData("'.$ownerType.'", "localizedfields", '.($index===null?'null':'"'.$index.'"').', $language, null, null, $fieldDefinition);' . "\n";

$code .= "\t" . '$data = \\Pimcore\\Model\\DataObject\\Service::getCalculatedFieldValue($object, $data);' . "\n";
$code .= "\treturn " . '$data' . ";\n";
Expand Down

0 comments on commit cedfbaa

Please sign in to comment.