As a follow-up to recent commits :
When the content type is set to 'always create block', the blocks do not get created :-)
This seems to be caused by the 'disabled' checkbox on node edit form :
if ($block['nodeasblock']) {
returns FALSE...

CommentFileSizeAuthor
#2 nodeasblock_disabled_control.patch1.72 KBjose reyero

Comments

alex_b’s picture

Seems that those blocks do get created on a multilingual site with "create multilingual blocks" on.

jose reyero’s picture

Status: Active » Needs review
StatusFileSize
new1.72 KB

Here's a small patch. it was the disabled form field passing a false value, so I've added one additional check in nodeapi(update.

Btw, the patch also fixes another small bug, which was showing blocks for unpublished nodes.

dropcube’s picture

Component: User interface » Code
Status: Needs review » Fixed

Committed, thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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