Mercurial > public > src > rhodecode
changeset 358:871c0dd1301c
bugfix, when form is crashing, form_result is unaccesibble
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 06 Jul 2010 23:43:13 +0200 |
parents | 588c6147efc7 |
children | fa3835d34fc1 |
files | pylons_app/controllers/admin/users.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pylons_app/controllers/admin/users.py Sun Jul 04 13:47:28 2010 +0200 +++ b/pylons_app/controllers/admin/users.py Tue Jul 06 23:43:13 2010 +0200 @@ -76,8 +76,9 @@ defaults=errors.value, encoding="UTF-8") except Exception: - h.flash(_('error occured during creation of user %s') \ - % form_result['username'], category='error') + + h.flash(_('error occured during creation of user') \ + % request.POST.get('username'), category='error') return redirect(url('users')) def new(self, format='html'):