moveMenuItem throws error call to getWeight() on NULL

Created on 14 February 2024, 9 months ago

Problem/Motivation

This happens when moveMenuItem is called on a menu item relative to a sibling but the sibling is not found.

php.ERROR: Error: Call to a member function getWeight() on null in Drupal\codit_menu_tools\MenuManipulator->moveMenuItem() (line 243 of /var/www/html/docroot/modules/contrib/codit_menu_tools/src/MenuManipulator.php) #0 /var/www/html/docroot/modules/contrib/codit_menu_tools/src/MenuManipulator.php(204):

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States swirt Florida

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024