From de243f8c31b82ef40fbe4cc3e89eb907681fdc27 Mon Sep 17 00:00:00 2001 From: Martin Bornhold Date: Mon, 17 Oct 2016 16:43:13 +0200 Subject: [PATCH] svn-support: Add missing argument to tmplate context. This argument was only added in the view handling GET requests. But in case of an error the POST view also rederes the template and threfore need this arguement. --- rhodecode/controllers/admin/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rhodecode/controllers/admin/settings.py b/rhodecode/controllers/admin/settings.py index 33f62e35..32a1666c 100644 --- a/rhodecode/controllers/admin/settings.py +++ b/rhodecode/controllers/admin/settings.py @@ -136,6 +136,10 @@ class SettingsController(BaseController): c.svn_branch_patterns = model.get_global_svn_branch_patterns() c.svn_tag_patterns = model.get_global_svn_tag_patterns() + # TODO: Replace with request.registry after migrating to pyramid. + pyramid_settings = get_current_registry().settings + c.svn_proxy_generate_config = pyramid_settings[generate_config] + application_form = ApplicationUiSettingsForm()() try: