From 1192a706cbe3122169dae8a360f0a8395ef732da 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 Signed-off-by: David Nind Signed-off-by: Julian Maurice Signed-off-by: Jesse Maseto modified: koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt --- 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 a8aa424cfe..17b32af435 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 @@ -[% 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 %]