Opened 21 years ago
Closed 20 years ago
#1109 closed defect (bug) (fixed)
DB choking on duplicate category names
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | major | Version: | 1.5 |
| Component: | General | Keywords: | |
| Focuses: | Cc: |
Description
I was making sub-cats for a section of my blog when I tried to make a "Funny" category. I already had one, and instead of a nice "Sorry, name already taken" error, I got "BLARGHHGRHHRHGHRHHGH DATABASE ERROR YOU FOOL!!!!!"
bascially, it's just not premptivly checking for duplicates and returning a nasty error.
- Jeff Minard
Attachments (1)
Change History (6)
#4
@
21 years ago
there is no "dieing nicely" ;)
Probably should be patched to simply return false an then echo a message at the top of the pane in a *red* highlight box (much like the blue one that you get on a successful operation) that reads: "Duplicate category names aren't allowed. Please, be a little more original."
(ok, so maybe that's not the right wording for the error message...)
Jeff
Note: See
TracTickets for help on using
tickets.
Added a patch to check if a category named $cat_name already exists. If so, die nicely