[Koha-bugs] [Bug 34145] New: Patron search broken

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 28 14:41:08 CEST 2023


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

            Bug ID: 34145
           Summary: Patron search broken
 Change sponsored?: ---
           Product: Koha
           Version: 23.05
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P5 - low
         Component: Patrons
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: justin at juicetoon.xyz
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com

This is my console output:

Uncaught TypeError: Cannot read properties of undefined (reading 'branchname')
    at render (members-home.pl:2483:76)
    at datatables.min_23.0500000.js:56:435
    at b.fnGetData (datatables.min_23.0500000.js:50:221)
    at B (datatables.min_23.0500000.js:55:141)
    at Ha (datatables.min_23.0500000.js:63:1)
    at P (datatables.min_23.0500000.js:67:433)
    at vb (datatables.min_23.0500000.js:78:98)
    at datatables.min_23.0500000.js:75:167
    at i (datatables.min_23.0500000.js:73:338)
    at Object.success (datatables.min_23.0500000.js:74:40)

And this is where branchname appears in members-home.pl:

in 

    {
                                "data": "library_id",
                                "searchable": true,
                                "orderable": true,
                                "render": function( data, type, row, meta ) {
                                    let library_name =
libraries_map[data].branchname
                                    if( !singleBranchMode && data ==
logged_in_library_id ) {
                                        return "<span
class=\"currentlibrary\">" + escape_str(library_name) + "</span>";
                                    } else {
                                        return escape_str(library_name);
                                    }
                                }
                            }

It seems that this bug may be related:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31421

Though it says a fix was pushed to stable.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list