Problem/Motivation

_block_styles_get_style can return FALSE.

Steps to reproduce

Edit any block config page where block style is not set.

Proposed resolution

Add better boundary checks

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

CommentFileSizeAuthor
#6 3195266-6.patch1.35 KBjurgenhaas
#2 3195266-2.patch1.83 KBjibran

Comments

jibran created an issue. See original summary.

jibran’s picture

Status: Active » Needs review
StatusFileSize
new1.83 KB

Here we go.

Christopher Riley’s picture

Thank you for the patch as it addresses the issue I was addressing in https://www.drupal.org/project/block_styles/issues/3201420.

jurgenhaas’s picture

Status: Needs review » Reviewed & tested by the community

Works as expected.

ecosty’s picture

Yeap, it works, also solved my problem mentioned on #3.

jurgenhaas’s picture

StatusFileSize
new1.35 KB

Sorry, got confused between version 1 and 2. Ignore this comment and patch file please.

jurgenhaas’s picture

crutch’s picture

+1

hatuhay’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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