mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 17:15:02 +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);
|
$datas = $context->getData($template, $entity, $contextGenerationData);
|
||||||
|
|
||||||
if ($isTest && $form['show_data']->getData()) {
|
if ($isTest && isset($form) && $form['show_data']->getData()) {
|
||||||
// very ugly hack...
|
// very ugly hack...
|
||||||
dd($datas);
|
dd($datas);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user