Browse Source

bug fix: oubli de donner le avatar_form dans les autres actions utilisant le account.html.twig.

Sevajol Bastien 12 years ago
parent
commit
2063278150
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/Muzich/UserBundle/Controller/UserController.php

+ 4 - 2
src/Muzich/UserBundle/Controller/UserController.php View File

294
           'form_tags_favorites'      => $form_tags_favorites->createView(),
294
           'form_tags_favorites'      => $form_tags_favorites->createView(),
295
           'form_tags_favorites_name' => $form_tags_favorites->getName(),
295
           'form_tags_favorites_name' => $form_tags_favorites->getName(),
296
           'favorite_tags_id'         => $this->getTagsFavorites(),
296
           'favorite_tags_id'         => $this->getTagsFavorites(),
297
-          'change_email_form'        => $change_email_form->createView()
297
+          'change_email_form'        => $change_email_form->createView(),
298
+          'avatar_form'              => $this->getAvatarForm()->createView()
298
         )
299
         )
299
       );
300
       );
300
     }
301
     }
477
         'form_tags_favorites'      => $form_tags_favorites->createView(),
478
         'form_tags_favorites'      => $form_tags_favorites->createView(),
478
         'form_tags_favorites_name' => $form_tags_favorites->getName(),
479
         'form_tags_favorites_name' => $form_tags_favorites->getName(),
479
         'favorite_tags_id'         => $this->getTagsFavorites(),
480
         'favorite_tags_id'         => $this->getTagsFavorites(),
480
-        'change_email_form'        => $change_email_form->createView()
481
+        'change_email_form'        => $change_email_form->createView(),
482
+        'avatar_form'              => $this->getAvatarForm()->createView()
481
       )
483
       )
482
     );
484
     );
483
   }
485
   }