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:
parent
9ec67bcba2
commit
b9a826b4f4
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue