Bug 31686 - Branch limited patron categories can break patron searching
Summary: Branch limited patron categories can break patron searching
Status: RESOLVED DUPLICATE of bug 31421
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low critical
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-05 13:49 UTC by Nick Clemens (kidclamp)
Modified: 2022-10-06 19:18 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens (kidclamp) 2022-10-05 13:49:17 UTC
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
Comment 1 Nick Clemens (kidclamp) 2022-10-06 19:18:55 UTC

*** This bug has been marked as a duplicate of bug 31421 ***