From: Karl O. Pinc Date: Wed, 31 Jul 2024 18:27:10 +0000 (-0500) Subject: Only put db_changed into a hidden variable when the component needs it X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=293ab2d4925b8cd0c705a268e075348a63a0705d;p=pgwui_common Only put db_changed into a hidden variable when the component needs it --- 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: