After upgrading to latest dev (d0eae7d4217dd1653767bbd77c8d3a44f0e8c0ee) which include path from #2442271: Missing Account Links with Mobile responsive menu didn't show up.

This is caused by this line:

$responsivemenu = array_merge($responsivemenu, $content['account']);

What we want to do is to reverse the arguments, because now $content['account'] is overriding $responsivemenu['#wrapper_attributes'] to array('id' => 'admin-menu-account') when it should be array('id' => 'admin-menu-menu-responsive')

Maybe it would be better to only include $content['account']['account'] and $content['account']['logout'] directly, or use element_children() to find menu links.

But I have switch the arguments for now, just to get something working.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

logaritmisk created an issue. See original summary.

logaritmisk’s picture

Status: Active » Needs review
FileSize
654 bytes

Attach patch

Status: Needs review » Needs work

The last submitted patch, 2: adminimal_admin_menu-broken-responsive-menu-2717819-2.patch, failed testing.

Christopher Riley’s picture

I thought I would test out the theme and therefore the recommended module for it (this one). Like a typical user I enabled things and ran into the duplicate menu issue and fixed it then enabled the responsive advanced setting and it wasn't until I applied this patch that things work as intended. This should really be applied right away to the code.

Thanks for the patch.

jstoller’s picture

Status: Needs work » Reviewed & tested by the community

Tess Bakker’s picture

Priority: Normal » Major
Status: Reviewed & tested by the community » Fixed

Thanks for fixing this major issue.

Tess Bakker’s picture

Status: Fixed » Closed (fixed)