a-plus icon indicating copy to clipboard operation
a-plus copied to clipboard

Menu items should always default to "Course" menu group

Open ihalaij1 opened this issue 2 years ago • 2 comments

Currently, if no additional menu group labels have been defined, new menu items go under the "Course" menu group.

If some menu items have a custom menu group label, new menu items go, by default, under the first custom menu group, when they should still go under "Course".

ihalaij1 avatar Oct 10 '24 10:10 ihalaij1

Detailed reproduction

Reproduction 1

Steps

  • create a menu item with group label label1 and the label labelitem1
  • create a menu item with empty group label and the label nonlabelitem1
  • create a menu item with group label label2 and the label labelitem2
  • everything else default

Results

image correctly fell into the label1


image fell into the wrong category


image fell into the latest the wrong category


Reproduction 2 (Reversed sequence)

Steps

  • create a menu item with empty group label and the label nonlabelitem1
  • create a menu item with group label label1 and the label labelitem1
  • create a what iten with group label label2 and the label labelitem2
  • everything else default

Results

image correctly fell into default group


image jumped into the wrong group


image jumped into the latest labelled group


Bug description in short

All the menu items that have being set an empty menu group label will automatically categorized to lastest added menu group on the sidebar menu.

James-Leste avatar Oct 23 '24 13:10 James-Leste

~I discovered that the original code does not intend to make items without a group label under the Course section by default. Instead, because the label is an empty string and it coincidentally seems that they go under the Course label by default. In this case, should I put them under the Nolabel(Or some other names) section for those menu items instead of under the Course section by default.~ Sticking to the original plan.

James-Leste avatar Oct 23 '24 16:10 James-Leste