From adad5d7645cdc8a948318d61e9a54ac466606686 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Sat, 17 May 2025 14:54:08 +0000 Subject: [PATCH] Bug 38127: Missing column headings in 'Add user' pop-up modal This patch modifies the template for adding to a basket from a new (empty) record in order to make the "Add user" patron search results correct. The patron search results table headers must be defined in the template before they are used. To test, apply the patch and go to Acquisitions. - Search for a vendor. - Add or create a basket for that vendor. - Click "Add to basket" and select "From a new (empty) record." - In the "New order" form, under the "Patrons" heading, click "Add user" - Search for patrons to add. - In the patron search results, each column should have a heading: Card, Name, Category, Library. Sponsored-by: Athens County Public Libraries --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt index b6ebb232f46..5516e05f1c8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt @@ -781,8 +781,8 @@ [% END %] -[% PROCESS patron_search_modal columns => columns, modal_title => t("Add user") %] [% SET columns = ['cardnumber','name','category','branch','action'] %] +[% PROCESS patron_search_modal columns => columns, modal_title => t("Add user") %] [% PROCESS patron_search_js columns => columns, actions => ["add"], preview_on_name_click => 1 %] [% MACRO jsinclude BLOCK %] -- 2.39.5