[Koha-bugs] [Bug 31686] New: Branch limited patron categories can break patron searching

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 5 15:49:17 CEST 2022


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

            Bug ID: 31686
           Summary: Branch limited patron categories can break patron
                    searching
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P5 - low
         Component: Patrons
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: nick at bywatersolutions.com
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com

When a patron is returned in a category that is restricted to a branch
different than the current logged in branch the datatable results will not load

To recreate:
1 - Edit Patron category Patron/PT to limit to a single branch that is not the
branch you are logged in at
2 - Perform a patron search that will return a patron in this category
3 - Error in JS console:
Uncaught TypeError: categories_map[data] is undefined
    render Ember
    S
http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_22.0600060.js:56
    fnGetData
http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_22.0600060.js:50
    B
http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_22.0600060.js:55
    Ha
http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_22.0600060.js:63
    P
http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_22.0600060.js:67
    vb
http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_22.0600060.js:78
    lb
http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_22.0600060.js:75
    i
http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_22.0600060.js:73
    success
http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_22.0600060.js:74
    jQuery 7
    sa
http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_22.0600060.js:75
    lb
http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_22.0600060.js:75
    P
http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_22.0600060.js:67
    T
http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_22.0600060.js:69
    <anonymous>
http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_22.0600060.js:144
    iterator
http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_22.0600060.js:138
    <anonymous>
http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_22.0600060.js:144
    g
http://localhost:8081/intranet-tmpl/lib/datatables/datatables.min_22.0600060.js:141
    Ember 2
    jQuery 9
    <anonymous> Ember
    jQuery 13
members-home.pl:2281:37

This is because the categories object passed to template is branch limited

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


More information about the Koha-bugs mailing list