Opened 13 years ago
Closed 13 years ago
#20086 closed defect (bug) (fixed)
Javascript error when submitting an existing taxonomy
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | minor | Version: | |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | Cc: |
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.
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.