Closed (fixed)
Project:
Block Title Link [D7]
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2011 at 20:39 UTC
Updated:
3 Jul 2013 at 13:40 UTC
Hi,
Just thought I'd mention that I am using nodesinblock module (latest stable) on drupal 7.8. When I set a title link for a block created by this module the link never renders, the title is rendered as before.
Just to be sure I tried the following:
Comments
Comment #1
ngmaloney commentedThis might be an issue with how nodesinblock renders blocks. Will look into this.
Comment #2
ZuluWarrior commentedThanks for having a look ngmaloney,
If its a nodesinblock issue, feel free to move the post to their issue queue! I was not sure who would be the one to 'call the ball'
Comment #3
adammaloneI've had a quick look and looks like this is the culprit:
Nodesinblock appears to assign the number 0 as the delta for the first block it provides with subsequent blocks added with an incrementing block delta. The second block created by nodesinblock (delta 1) appears to work with block title link.
empty(0) evaluates to true and the block title link data does not get saved in the case of delta == 0 (as is the case with the first nodesinblock block).
I'm not sure if this is an issue with nodesinblock or block_titlelink but would be interested in discussion of the issue.
Comment #4
adammaloneI've altered the code to read
as this will return the expected value. There are blocks in core with a delta of 0 so I think this module needs to change to accommodate that.
Comment #5
adammaloneThis has actually been committed to 7.x-1.x HEAD so closing