Skip to content

Commit 145cb11

Browse files
committed
Bugfix for computed fields
Bugfix because we are always getting the following error (we should not inject the service we load in the construct?): Error in template: Unable to register extension "app_extension" as extensions have already been initialized.
1 parent c2f7080 commit 145cb11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Service/DataService.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ public function propagateDataToComputedField(FormInterface $form, array& $object
216216
try {
217217

218218

219-
$this->twig->addExtension($this->appTwig);
219+
// $this->twig->addExtension($this->appTwig);
220+
// Bugfix because we are always getting the following error (we should not inject the service we load in the construct?):
221+
// Error in template: Unable to register extension "app_extension" as extensions have already been initialized.
220222
$out = $this->twig->createTemplate($template)->render([
221223
'_source' => $objectArray,
222224
'_type' => $type,

0 commit comments

Comments
 (0)