Skip to content
Snippets Groups Projects
Commit 96d05593 authored by Camille Simiand's avatar Camille Simiand
Browse files

Fix save form data if email is not modified

parent 169a3b0c
No related branches found
No related tags found
1 merge request!69tuleap-142-when-editing-email-address-user-should-confirm-it-with-email-validation
......@@ -104,6 +104,9 @@ class UserController extends AbstractController
]);
}
$this->entity_manager->persist($current_user);
$this->entity_manager->flush();
$this->addFlash(
'success',
$this->translator->trans('user.profile.updated.success')
......@@ -112,9 +115,6 @@ class UserController extends AbstractController
return $this->redirectToRoute('show_profile');
}
$this->entity_manager->persist($current_user);
$this->entity_manager->flush();
return $this->renderForm('user/edit_profile.html.twig', [
'editUserProfileForm' => $form
]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment