initialiser le template de page des groupes de travail (ref #106)

This commit is contained in:
afornerot 2020-04-06 10:23:27 +02:00
parent 8d03012ba1
commit dca6f700e5
1 changed files with 8 additions and 2 deletions

View File

@ -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",