From 143b95f1689c689521bd708b2d49789ea04186d2 Mon Sep 17 00:00:00 2001 From: Emily Lamancusa Date: Fri, 7 Mar 2025 08:26:17 -0500 Subject: [PATCH] Bug 38842: Add block to DRY out checkin page pass-through data There are a number of variable values that need to get passed back to the controller after submitting a modal to maintain the checkin page's state. Currently, all of these inputs are manually coded for each modal. Add a Template Toolkit block that can be used instead to add all of these mandatory "pass-through" values. --- .../prog/en/modules/circ/returns.tt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index d2b1f676784..6552e8c4ae1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -1479,6 +1479,22 @@ [% INCLUDE 'modals/add_catalog_concern.inc' %] [% END %] +[%# passthrough_data: adds hidden inputs for any data that needs to be preserved and passed back to the controller after a modal response %] +[% BLOCK passthrough_data %] +
+ + + + + [% FOREACH inputloo IN inputloop %] + + + + + [% END %] +
+[% END %] + [% MACRO jsinclude BLOCK %] [% INCLUDE 'datatables.inc' %] [% INCLUDE 'calendar.inc' %] -- 2.34.1