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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]

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.
_______________________________________________
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