# Trying to nest category inside another nested category screw up UI

**URL:** https://meta.discourse.org/t/trying-to-nest-category-inside-another-nested-category-screw-up-ui/74309
**Category:** Bug
**Created:** [Novembro 18, 2017, 4:07am UTC](https://meta.discourse.org/t/trying-to-nest-category-inside-another-nested-category-screw-up-ui/74309 "2017-11-18T04:07:16Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [Novembro 18, 2017, 4:07am UTC](https://meta.discourse.org/t/trying-to-nest-category-inside-another-nested-category-screw-up-ui/74309/1 "2017-11-18T04:07:17Z")

</div>

Repo:

1. Pick a category
2. Change its parent into a category that is _already nested inside_ some other category
3. You’ll get an error saying you’re not allowed to do this
4. Escape out
5. The UI seems to think that the category is successfully transferred under the new parent, although in reality it is not
6. Can’t go into the category any more as the URL path will be incorrect
7. Can only recover by refreshing entire page

---

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [Novembro 18, 2017, 4:54am UTC](https://meta.discourse.org/t/trying-to-nest-category-inside-another-nested-category-screw-up-ui/74309/2 "2017-11-18T04:54:35Z")

</div>

Incidentally, if subcategories cannot be parents, why should they show up in the drop box at all? Why not filter them out?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Novembro 18, 2017, 11:25am UTC](https://meta.discourse.org/t/trying-to-nest-category-inside-another-nested-category-screw-up-ui/74309/3 "2017-11-18T11:25:25Z")

</div>

Probably a regression cc @j.jaffeux

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [Novembro 18, 2017, 1:57pm UTC](https://meta.discourse.org/t/trying-to-nest-category-inside-another-nested-category-screw-up-ui/74309/5 "2017-11-18T13:57:35Z")

</div>

I actually changed it in my branch the other day, but was waiting for a few other changes before pushing this, but I do agree.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [Novembro 21, 2017, 4:45pm UTC](https://meta.discourse.org/t/trying-to-nest-category-inside-another-nested-category-screw-up-ui/74309/6 "2017-11-21T16:45:57Z")

</div>

All of this should be fixed, can you confirm please?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [Novembro 21, 2017, 6:28pm UTC](https://meta.discourse.org/t/trying-to-nest-category-inside-another-nested-category-screw-up-ui/74309/9 "2017-11-21T18:28:18Z")

</div>

I can no longer reproduce this on try. Subcategories do not appear in the dropdown.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Novembro 21, 2017, 8:35pm UTC](https://meta.discourse.org/t/trying-to-nest-category-inside-another-nested-category-screw-up-ui/74309/10 "2017-11-21T20:35:23Z")

</div>


