From b9a826b4f468e4e2ce00c2a063b71d32bbc3850d 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 Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer (cherry picked from commit 139fff4b27cdb709ab2373b7b0e844dab771ab63) Signed-off-by: Fridolin Somers --- .../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 dee09554a5..43d1f85fd1 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",