From 873b18893d445287c5a5e091a4fd7ceed4c70aef 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 ce5205b1ced..42ffca3b1f4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -1464,6 +1464,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