mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
check existence of form before using it
This commit is contained in:
parent
7a0234adb2
commit
b423821ae9
@ -283,7 +283,7 @@ final class DocGeneratorTemplateController extends AbstractController
|
||||
}
|
||||
$datas = $context->getData($template, $entity, $contextGenerationData);
|
||||
|
||||
if ($isTest && $form['show_data']->getData()) {
|
||||
if ($isTest && isset($form) && $form['show_data']->getData()) {
|
||||
// very ugly hack...
|
||||
dd($datas);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user