[wp-trac] [WordPress Trac] #13037: Nav menu doesn't like when item is a child of itself
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 29 14:28:42 UTC 2010
#13037: Nav menu doesn't like when item is a child of itself
-----------------------------+----------------------------------------------
Reporter: johnjamesjacoby | Owner: ryan
Type: defect (bug) | Status: new
Priority: high | Milestone: 3.0
Component: Menus | Version: 3.0
Severity: normal | Keywords: needs-patch
-----------------------------+----------------------------------------------
Changes (by duck_):
* keywords: has-patch needs-testing => needs-patch
Comment:
This bug has changed since filosofo's major update was applied:
Now if you try to make a post/page/whatever a child of itself in a menu
you encounter a JavaScript error any time you try to load the menus page,
causing only half of the page to render. Steps:
* Create a menu[[BR]]
* Add the same post to menu twice[[BR]]
* Make post child of itself[[BR]]
* Click save
The error which occurs:
{{{Uncaught TypeError: Object #<an Object> has no method
'autocomplete'}}}, line 312 of nav-menu.dev.js
Using console.log(el) before this call I get the quick-search-posttype-
post input element, this suggests this is the element throwing the error.
Not had much chance to look into this, busy with exams :-(, but seems like
there a no checks in place to stop menu elements being children of
themselves.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13037#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list