Nodeblock checks if node is translatable and if a translation in the current language is available. If you create a node only in one specific language there is no "translation" found (tnid is 0), because it is the original node, and nodeblock does not display the block even if the content is in the current language.

I added a condition to display the block if there's no "translation" but the language is the current one.

CommentFileSizeAuthor
#5 one-language-707132-5.patch803 bytesrjmackay
one-language.patch1.22 KBStandart

Comments

tom_o_t’s picture

Assigned: Unassigned » tom_o_t

Thanks for the patch. Will test and commit - looks like this is the correct fix.

See also #689574: Unexpected behavior for translation fallback regarding a site's default language (marked as duplicate of this issue)

marcus_clements’s picture

I'm using this module and I encountered this problem.

The fix seems good.

shawngo’s picture

Same issue. Patch fixed the problem. Thanks!

Standart’s picture

Status: Needs review » Reviewed & tested by the community
rjmackay’s picture

StatusFileSize
new803 bytes

Adding rerolled -p0 patch.. may be useful to some people.
Patch works well - can we get this committed??

Johnny vd Laar’s picture

Status: Reviewed & tested by the community » Fixed

I've committed the patch. Please check if everything works now.

Status: Fixed » Closed (fixed)

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