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 <KKRUEGER@cuyahogalibrary.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 139fff4b27)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Lucas Gass 2025-02-28 15:09:52 +00:00 committed by Fridolin Somers
parent 9ec67bcba2
commit b9a826b4f4
No known key found for this signature in database
GPG Key ID: 9A8E73E2A8B96537
1 changed files with 3 additions and 0 deletions

View File

@ -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",