[wp-trac] [WordPress Trac] #20086: Javascript error when submitting an existing taxonomy
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 20 17:34:26 UTC 2012
#20086: Javascript error when submitting an existing taxonomy
---------------------------+-----------------------------
Reporter: ThemeFuse.com | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: minor | Keywords: needs-patch
---------------------------+-----------------------------
When trying to add an existing taxonomy, a javascript error occurs:
"Uncaught TypeError: Cannot read property 'supplemental' of undefined"
This is because the script will continue to try and add the taxonomy
inside the select tag (inside the #addtag form), without checking whether
the taxonomy is not null.
Solution: In tags.dev.js, on line 54, you need to check whether
res.responses[1] is not null.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20086>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list