Problem/Motivation

Every time I import a new piece of content from GatheContent.com and select a menu item as a parent, the node is being imported, but the menu parent is not.

Steps to reproduce

Import any piece of content and try to generate a menu item, starting with 2nd level.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

optasy created an issue. See original summary.

optasy’s picture

StatusFileSize
new1.04 KB
yogeshmpawar’s picture

Assigned: optasy » yogeshmpawar
yogeshmpawar’s picture

Version: 8.x-5.2 » 8.x-5.x-dev
Assigned: yogeshmpawar » Unassigned
Status: Active » Needs review
StatusFileSize
new2.31 KB

Here's the patch which supports single language sites & menu creation for second language of site.

Berdir made their first commit to this issue’s fork.

berdir’s picture

The proposed fix would then only work for entries that have a provider. I've pushed an alternative and simpler fix that uses the third parameter of explode to make sure we only cut of the menu name.

  • Berdir committed a1117e2a on 6.x
    Issue #3210336 by yogeshmpawar: Menu items parents
    
berdir’s picture

Status: Needs review » Fixed

Merged.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.