Here's the issue in the menu block queue: #2499733: Error when upgrading to 7.x-2.6

Notice: Undefined index: depth_relative in menu_tree_block_data() (line 360 of menu_block.module).

The 7.x-2.6 version added relative depth to menu block configuration which is great. However, if someone has existing sites with many menu blocks configured (at least using panels), $config['depth_relative'] will not exist in the configuration for any of them until each and every panel pane/block is re-saved. And all of them will throw errors.

That places quite a burden on folks attempting to upgrade large numbers of sites.

Would it be possible to get this patch into the next release of Panopoly?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dsnopek’s picture

Issue tags: +sprint

Possible, yes! Can you make a patch against panopoly_widgets which adds that patch to the panopoly_widgets.make file? Then I'll run some automated tests on it. If all looks good, I'll commit. :-)

dsnopek’s picture

Title: Menu block causing lots of notices (to do with relative depth) since upgrade to 7.x-2.6 » Update to menu_block 2.7

That patch was merged into menu_block and included in the 2.7 release. So, I'm repurposing this issue to be about updating to menu_block 2.7

dsnopek’s picture

Status: Active » Needs review
FileSize
393 bytes

Here's a patch! I'll run it on Travis-CI in a moment.

EDIT: Here's the build on Travis: https://travis-ci.org/panopoly/panopoly/builds/69169835

  • dsnopek committed 17d103b on 7.x-1.x
    Update Panopoly Widgets for Issue #2514518 by dsnopek: Update to...
dsnopek’s picture

Status: Needs review » Fixed

I'm going to trust the tests (which passed) and @Andrew Edwards manual testing of this patch and ... commit! :-)

Status: Fixed » Closed (fixed)

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