Opened 22 years ago
Closed 20 years ago
#1109 closed defect (bug) (fixed)
DB choking on duplicate category names
| Reported by: | anonymousbugger | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 1.5 |
| Severity: | major | Keywords: | |
| Cc: | Focuses: |
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
@
22 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
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Added a patch to check if a category named $cat_name already exists. If so, die nicely