diff --git a/core/components/formit/elements/snippets/snippet.formitretriever.php b/core/components/formit/elements/snippets/snippet.formitretriever.php index c4c28f79..baae5558 100644 --- a/core/components/formit/elements/snippets/snippet.formitretriever.php +++ b/core/components/formit/elements/snippets/snippet.formitretriever.php @@ -40,6 +40,10 @@ $fi->loadRequest(); $fi->request->loadDictionary(); $data = $fi->request->dictionary->retrieve(); +if (empty($data)) { + $data = $fi->request->runPreHooks(); +} + if (!empty($data)) { /* set data to placeholders */ foreach ($data as $k=>$v) {