https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40344
Lisette Scheer <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #184102|0 |1 is obsolete| | --- Comment #3 from Lisette Scheer <[email protected]> --- Created attachment 184156 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=184156&action=edit Bug 40344: Fix KohaTable_spec.ts > Cannot read properties of undefined (reading 'description') Not sure since which change this is failing but it has always been wrong. The code in patron-search.inc is: var categories = [% To.json(categories) | $raw %].map(e => { e['_id'] = e.categorycode.toLowerCase(); e['_str'] = e.description; return e; }); var categories_map = categories.reduce((map, e) => { map[e._id] = e; return map; }, {}); It's the keys that are lower cased. Test plan: `yarn cypress run \ --config video=false,screenshotOnRunFailure=false \ --spec t/cypress/integration/KohaTable/KohaTable_spec.ts` should return green Signed-off-by: Matt Blenkinsop <[email protected]> Signed-off-by: Lisette Scheer <[email protected]> -- You are receiving this mail because: 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/
