Ran into this:
Notice: Undefined index: menu_name in admin_links_access_filter_preprocess_menu() (line 9 of modules/contrib/admin_links_access_filter/admin_links_access_filter.module).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

a.hjelm created an issue. See original summary.

a.hjelm’s picture

Issue summary: View changes

I'll admit that I'm not 100% sure that this is actually related to this module or if something else has been messed up, but this is where I ran into it.

menu_name seems to not be available inside $variables at all times, so here's a small patch that looks out for that and grabs the menu_name from the first loaded menu item if needed.

agoradesign’s picture

Category: Task » Bug report
Status: Active » Needs review

Interesting,,, haven't seen this before. Would be interesting, how this can happen?!?

However, adding these extra lines won't hurt anyway and makes it more bullet proof :-)

Thank you very much for the patch, will commit this asap

a.hjelm’s picture

FileSize
949 bytes

Yeah, it's a bit strange that the menu_name is not available.

Also, realised I exported the patch with local paths. Here's a properly formatted one.

agoradesign’s picture

Committed, thanks! :-)

(I'll tag a new alpha release, as I don't think that we'll have many upcoming changes in the near-future)

agoradesign’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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