Value $variables['elements']['#id'] might not exists, for example if a block is rendered by panels.

Comments

szantog created an issue. See original summary.

szantog’s picture

Status: Active » Needs review
StatusFileSize
new1.64 KB
szantog’s picture

StatusFileSize
new1.64 KB

Ehh.. bad habit..

magicmyth’s picture

Status: Needs review » Reviewed & tested by the community

Just ran into this issue (I am testing Panelizer on some nodes) and the patch from #3 resolved the problem.

cobenash’s picture

#3 works.
Test at Drupal 8.6.7 and saw the error message when I place block using context.

  • hatuhay committed 8e948c8 on 8.x-1.x authored by szantog
    Issue #2725167 by szantog: Notice: Undefined index: #id in...
hatuhay’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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