Fixed minor bug when changing user name fails
This commit is contained in:
parent
23ac43ecac
commit
1b3ce29b46
1 changed files with 67 additions and 57 deletions
|
@ -110,6 +110,9 @@ class UserController
|
|||
*/
|
||||
public function editAction($name)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
$user = self::locateUser($name);
|
||||
$edited = false;
|
||||
$secondary = $user->id == $this->context->user->id ? 'own' : 'all';
|
||||
|
@ -175,6 +178,13 @@ class UserController
|
|||
R::store($user);
|
||||
$this->context->transport->success = true;
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
$this->context->transport->user = self::locateUser($name);
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue