#10308 closed defect (bug) (worksforme)
Adding two categories in a row creates an erroneous slug
Reported by: | Denis-de-Bernardy | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.8 |
Component: | Taxonomy | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
Browse Posts / Categories.
- Create a test1, a root category
- Without reloading the page, create test2, a child category of the newly created test1
- QuickEdit test2 - its slug is test1-test2 instead of test2
Change History (10)
#3
@
15 years ago
Can not reproduce in current trunk.
yeah, had the same thought when the user reported it too. but there it was, a few tests later... :-)
#4
@
15 years ago
btw, I *think* it's due to the fact that, when added using ajax, the slug would be calculated automatically based on the name. but since the name shows, for newly created sub cats, as test1 - test2, a slug of test1-test2 would seem right in this case.
#5
@
15 years ago
Then a comparison of the javscript code with the php code is necessary. If the javascript not absolutely correctly mimics the behaviours of the php code, then I tend to say it is buggy and we have a bug here.
But that must be proven first.
Note: See
TracTickets for help on using
tickets.
Can not reproduce in current trunk. for me the slug on quickedit is "test2" which seems valid to me.
BUT: To re-test, I deleted my first test1 and test2 category and then I recreated two new ones. For the second test2 I wanted to set the parent and what happened? The deleted categories still were in the dropdown list.
So this are my actual categories:
And this is the dropdown:
the italic ones are acutally non-existant.