https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29144

--- Comment #76 from Marcel de Rooy <[email protected]> ---
(In reply to Marcel de Rooy from comment #75)
> (In reply to Marcel de Rooy from comment #73)
> > (In reply to Jonathan Druart from comment #72)
> > > Caught by Owen on IRC: DT search is broken (general search when searching
> > > for libraries).
> > > 
> > > Uncaught TypeError: col.data.split is not a function
> > > 
> > > It's because opac_info is searchable but "data" is a function:
> > > 
> > >     "data": function( row, type, val, meta ) {
> > >         return ''; // provisional placeholder for opac_info
> > >     },
> > >     "searchable": true,
> > >     "visible": false,
> > >     "orderable": false
> 
> I am seeing several columns where data is a function btw.
> 
>                         "data": function( row, type, val, meta ) {
>                             const library_info = [];
> 
>                         "data": function( row, type, val, meta ) {
>                             var result = '<a class="btn btn-default btn-xs"
> href="/cgi-bin/koha/admin/branches.pl?op=add_form&amp;
> branchcode='+encodeURIComponent(row.library_id)+'" role="button"><i
> class="fa fa-pencil" aria-hidden="true"></i> '+_("Edit")+'</a>';

Addressed all three columns on bug 31842. Please test.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to