Opened 14 years ago
Closed 14 years ago
#20086 closed defect (bug) (fixed)
Javascript error when submitting an existing taxonomy
| Reported by: | ThemeFuse.com | Owned by: | duck_ |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | Taxonomy | Version: | |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: |
Description
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.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I think it may be better to do a generic check for errors and if they exist, stop trying to process the response. The error message will have already been displayed by then.