Mercurial > kallithea
diff rhodecode/controllers/admin/settings.py @ 2086:eefb197bdd95 beta
fixed missing commit after hook delete
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 01 Mar 2012 19:40:42 +0200 |
parents | a76e9bacbedc |
children | ecd59c28f432 a801c4542f48 |
line wrap: on
line diff
--- a/rhodecode/controllers/admin/settings.py Thu Mar 01 19:38:21 2012 +0200 +++ b/rhodecode/controllers/admin/settings.py Thu Mar 01 19:40:42 2012 +0200 @@ -248,7 +248,7 @@ if update: h.flash(_('Updated hooks'), category='success') - Session.commit() + self.sa.commit() except: log.error(traceback.format_exc()) h.flash(_('error occurred during hook creation'), @@ -285,7 +285,7 @@ if setting_id == 'hooks': hook_id = request.POST.get('hook_id') RhodeCodeUi.delete(hook_id) - + self.sa.commit() @HasPermissionAllDecorator('hg.admin') def show(self, setting_id, format='html'):