Missing menu weight

Created on 6 September 2019, about 5 years ago
Updated 15 September 2021, about 3 years ago

After you uncheck the Use term weight order, and click the save. In menu, taxonomy menus weight will reset.

Actually, the main reason is not set weight when uncheck the `Use term weight order`.

// Order by terms weight if configured for this taxonomy_menu.
if ($this->useTermWeightOrder()) {
  $link['weight'] = $term->getWeight();
}

Not have else, so the weight always not set, and then sort by alphabetical.

I think if we don't use term weight order, we should keep sorting by the menu tree.

🐛 Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

🇨🇳China Oscaner

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024