From 293ab2d4925b8cd0c705a268e075348a63a0705d Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Wed, 31 Jul 2024 13:27:10 -0500 Subject: [PATCH] Only put db_changed into a hidden variable when the component needs it --- src/pgwui_common/templates/auth_base.mak | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/pgwui_common/templates/auth_base.mak b/src/pgwui_common/templates/auth_base.mak index 0245964..098b54a 100644 --- a/src/pgwui_common/templates/auth_base.mak +++ b/src/pgwui_common/templates/auth_base.mak @@ -87,14 +87,7 @@ name="csrf_token" value="${csrf_token}" /> - % if db_changed is not None and db_changed is not UNDEFINED: - <%doc>This is a hack. It should be fixed so that only double-upload - detecting forms unconditionally generate this element. - - % endif + ${caller.body()} <%doc> All the *_row() defs take a tab_index and, as a side effect, @@ -146,7 +139,7 @@ <%def name="main_form(tab_index)">
- ${self.hidden_vars(csrf_token)} + <%self:hidden_vars csrf_token="${csrf_token}" /> % if (report_success or session_expired) and last_key: