Mercurial > public > src > rhodecode
changeset 2809:aa89767753a9 beta
fix redirection on repo create failures
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 08 Aug 2012 22:38:01 +0200 |
parents | 22f79562836c |
children | 9bce679a3f49 |
files | rhodecode/controllers/admin/repos.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/controllers/admin/repos.py Wed Aug 08 22:37:40 2012 +0200 +++ b/rhodecode/controllers/admin/repos.py Wed Aug 08 22:38:01 2012 +0200 @@ -227,6 +227,7 @@ msg = _('error occurred during creation of repository %s') \ % form_result.get('repo_name') h.flash(msg, category='error') + return redirect(url('repos')) #redirect to our new repo ! return redirect(url('summary_home', repo_name=new_repo.repo_name))