Explorar el Código

Anomalie #46: Changement de mot de passe: err 500

bastien hace 12 años
padre
commit
7b374383a5
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  1. 10 1
      src/Muzich/UserBundle/Controller/UserController.php

+ 10 - 1
src/Muzich/UserBundle/Controller/UserController.php Ver fichero

@@ -102,11 +102,20 @@ class UserController extends Controller
102 102
     }
103 103
     else
104 104
     {
105
+      $form_tags_favorites = $this->createForm(
106
+        new TagFavoritesForm(), 
107
+        array('tags' => $this->getDoctrine()->getRepository('MuzichCoreBundle:User')
108
+          ->getTagIdsFavorites($user->getId())
109
+        ),
110
+        array('tags' => $this->getTagsArray())
111
+      );
112
+      
105 113
       return $this->container->get('templating')->renderResponse(
106 114
         'MuzichUserBundle:User:account.html.twig',
107 115
         array(
108 116
           'form_password' => $form->createView(),
109
-          'user' => $user
117
+          'user' => $user,
118
+          'form_tags_favorites' => $form_tags_favorites->createView()
110 119
         )
111 120
       );
112 121
     }