ProcessWire icon indicating copy to clipboard operation
ProcessWire copied to clipboard

Uncaught TypeError: Cannot read property 'length' of undefined in main.js

Open adrianbj opened this issue 9 years ago • 2 comments

https://github.com/ryancramerdesign/ProcessWire/blob/devns/wire/templates-admin/scripts/main.js#L229

adrianbj avatar Jul 07 '16 04:07 adrianbj

What steps are necessary to observe this JS error? Thanks.

ryancramerdesign avatar Jul 08 '16 15:07 ryancramerdesign

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.

adrianbj avatar Jul 08 '16 15:07 adrianbj