When using ajax (for example, upload file in node edit form) i see following js error:

TypeError: settings.menu_views is undefined

I made a quick research and realized that this occurs because menu_views setting gets away from Drupal.settings array. To avoid this issue I suggest the fix that in attached file.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jlporter’s picture

Status: Needs review » Reviewed & tested by the community

Hit the same bug, patch applied cleanly and fixed the issue.

Spleshka’s picture

Any feedback from maintainers so far?

  • markcarver committed 3b433b1 on authored by Spleshka
    Issue #2279855 by Spleshka: TypeError: settings.menu_views is undefined
    
markhalliwell’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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