initialiser le template de page des groupes de travail (ref #106)
This commit is contained in:
parent
8d03012ba1
commit
dca6f700e5
|
@ -699,8 +699,14 @@ class GroupController extends Controller
|
|||
$data->setFgcancreatepage(false);
|
||||
$data->setFgcancreatecalendar(false);
|
||||
$data->setFgcancreateblog(false);
|
||||
if($access=="user") $data->setOwner($this->getUser());
|
||||
|
||||
if($access=="user") {
|
||||
$data->setOwner($this->getUser());
|
||||
if($this->getParameter("portal_activate")) {
|
||||
$template=$em->getRepository("CadolesPortalBundle:Page")->findoneby(["parentfor"=>"group"]);
|
||||
$data->setPagetemplate($template);
|
||||
}
|
||||
}
|
||||
|
||||
// Création du formulaire
|
||||
$form = $this->createForm(GroupType::class,$data,array(
|
||||
"mode"=>"submit",
|
||||
|
|
Loading…
Reference in New Issue