From 20c1452aaf3c9fd66806087bc395261549dcc808 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 28 Feb 2025 15:09:52 +0000 Subject: [PATCH] Bug 38861: Use a render function to display pickup name or pickup ID To test: 0. Have some bookings that are ready to collect. 1. Load the bookings to collect report. 2. Table does not load. 3. APPLY PATCH 4. Try again, table loads. 5. Make sure you can filter by 'Pickup library' Signed-off-by: Kristi Krueger --- .../intranet-tmpl/prog/en/modules/circ/pendingbookings.tt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingbookings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingbookings.tt index 522c68cf0b..ec56c04849 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingbookings.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingbookings.tt @@ -187,6 +187,9 @@ "title": _("Pickup library"), "searchable": true, "orderable": true, + "render": function( data, type, row, meta ) { + return escape_str(row.pickup_library_id ? row.pickup_library.name : row.pickup_library_id); + } }, { "data": "biblio.title", -- 2.39.5