A missing hasOwnProperty()-check in jQuery Drilldown causes a fatal JavaScript error if this script is used on the same page as another script that extends Array.prototype:

Object doesn't support this property or method
Line: 87
Char: 15
sites/all/modules/contrib/admin/includes/jquery.drilldown.js

The attached patch fixes that.

CommentFileSizeAuthor
admin-missing-hasownpropery.patch1.01 KBmikl

Comments

traviscarden’s picture

Status: Needs review » Reviewed & tested by the community

Simple fix, works great. Thanks!

jessebeach’s picture

I verified this fix. Has it been committed yet?

jessebeach’s picture

Issue summary: View changes

Updated issue summary for findability.

sickness29’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Closed (outdated)

Development or support is not planned for D6. All D6-related issues are marked as outdated in a bunch.

Everyone can apply the patch above (not tested by the maintainers, tested by the community) to their D6 projects.
If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.