Bug 20212: Search on fund's name instead of id

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2021-01-08 15:04:32 +01:00
parent 39f8f3988c
commit 7f853584d5

View file

@ -701,7 +701,7 @@
"orderable": false // FIXME: How can we do it in DBIC?
},
{
"data": "fund_id",
"data": "fund.name",
"render": function(data, type, row, meta) {
if (type != 'display') return data.escapeHtml();
return row.fund.name.escapeHtml();