select_report_type : person template

This commit is contained in:
Marc Ducobu
2014-11-10 12:34:54 +01:00
parent 6a5f24a898
commit 88e8b55317
2 changed files with 8 additions and 3 deletions

View File

@@ -86,6 +86,8 @@ class ReportController extends Controller
$em = $this->getDoctrine()->getManager();
$person = $em->getRepository('ChillPersonBundle:Person')->find($person_id);
$cFGroups = $em->getRepository('ChillCustomFieldsBundle:CustomFieldsGroup')
->findByEntity('Chill\ReportBundle\Entity\Report');
@@ -106,7 +108,8 @@ class ReportController extends Controller
->getForm();
return $this->render('ChillReportBundle:Report:select_report_type.html.twig', array(
'form' => $form->createView()
'form' => $form->createView(),
'person' => $person
));
}