When rendering a block via panels it doesn't have a region and therefore setting data-region throws the error -- Error: Call to a member function getRegion() on null in menu_item_extras_preprocess_block().

Comments

8thom created an issue. See original summary.

8thom’s picture

StatusFileSize
new1.19 KB

Patch bypasses setting data-region when $variables['elements']['#id'] is not set.

voleger’s picture

Status: Active » Needs review
StatusFileSize
new1.23 KB
new906 bytes

Thanks for the patch. There are few changes.

  • Andriy Khomych authored 1b32f4c on 8.x-2.x
    Merge pull request #78 from iVegas/issues/2908164
    
    Issue #2908164 by...
  • voleger committed 77cf278 on 8.x-2.x
    Issue #2908164 by 8thom: Error: Call to a member function getRegion() on...
voleger’s picture

Status: Needs review » Fixed

Thanks. Changes are committed.
You can find them in the 8.x-2.x-dev release.
8.x-2.x-alpha2 will be released during next week.

Status: Fixed » Closed (fixed)

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