mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
check existence of form before using it
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user