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