ProcessWire
ProcessWire copied to clipboard
Uncaught TypeError: Cannot read property 'length' of undefined in main.js
https://github.com/ryancramerdesign/ProcessWire/blob/devns/wire/templates-admin/scripts/main.js#L229
What steps are necessary to observe this JS error? Thanks.
Sorry about that - was in a rush and didn't want to forget to report it. I am not sure if it can show up in normal usage, but it can be reproduced very easily by doing a $session->forceLogin() to a non-superuser and then hovering over one of the menu items they don't have permission to access. If you do a $session->logout() first then there is no problem, but thought maybe that line noted above should perhaps check for the existence of data.list just in case it's possible to reproduce this error in some other way.