Opened 15 months ago
Closed 15 months ago
#20086 closed defect (bug) (fixed)
Javascript error when submitting an existing taxonomy
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | Taxonomy | Version: | |
| Severity: | minor | Keywords: | has-patch |
| 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)
- Component changed from General to Taxonomy
- Milestone changed from Awaiting Review to 3.4
solarissmoke — 15 months ago
comment:2
solarissmoke — 15 months ago
- Keywords has-patch added; needs-patch removed
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.