initialiser le template de page des groupes de travail (ref #106)
This commit is contained in:
parent
8d03012ba1
commit
dca6f700e5
|
@ -699,7 +699,13 @@ class GroupController extends Controller
|
||||||
$data->setFgcancreatepage(false);
|
$data->setFgcancreatepage(false);
|
||||||
$data->setFgcancreatecalendar(false);
|
$data->setFgcancreatecalendar(false);
|
||||||
$data->setFgcancreateblog(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
|
// Création du formulaire
|
||||||
$form = $this->createForm(GroupType::class,$data,array(
|
$form = $this->createForm(GroupType::class,$data,array(
|
||||||
|
|
Loading…
Reference in New Issue