From 7f2857ef914109ec1a4561aea3156e6ae8424922 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 24 Feb 2021 00:09:43 +0100 Subject: [PATCH] Rename title in civility --- Controller/DefaultController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Controller/DefaultController.php b/Controller/DefaultController.php index 41009f8..bd53b1a 100644 --- a/Controller/DefaultController.php +++ b/Controller/DefaultController.php @@ -505,8 +505,8 @@ class DefaultController extends AbstractController { //Create the RegisterType form and give the proper parameters $form = $this->createForm($this->config['register']['view']['form'], null, array( - 'class_title' => $this->config['class']['title'], - 'title' => $doctrine->getRepository($this->config['class']['title'])->findOneByTitle($this->config['default']['title']), + 'class_civility' => $this->config['class']['civility'], + 'civility' => $doctrine->getRepository($this->config['class']['civility'])->findOneByTitle($this->config['default']['civility']), //Set action to register route name and context 'action' => $this->generateUrl($this->config['route']['register']['name'], $this->config['route']['register']['context']), 'method' => 'POST' @@ -581,7 +581,7 @@ class DefaultController extends AbstractController { $user->setPhone($data['phone']); $user->setPassword($encoder->encodePassword($user, $data['password'])); $user->setActive(true); - $user->setTitle($data['title']); + $user->setCivility($data['civility']); //Iterate on default group foreach($this->config['default']['group'] as $i => $groupTitle) { -- 2.41.0