mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
add the today default date to new report
This commit is contained in:
parent
82c3585aff
commit
1898b5d399
@ -115,6 +115,7 @@ class ReportController extends Controller
|
||||
|
||||
$entity = new Report();
|
||||
$entity->setUser($this->get('security.context')->getToken()->getUser());
|
||||
$entity->setDate(new \DateTime('now'));
|
||||
|
||||
$cFGroup = $em->getRepository('ChillCustomFieldsBundle:CustomFieldsGroup')->find($cf_group_id);
|
||||
$entity->setCFGroup($cFGroup);
|
||||
|
Loading…
x
Reference in New Issue
Block a user