After updating to 6.2.10 a views block presenting link field is always shown even if links are empty.
Reverting to 6.2.9 solve the problem.
The thing that look strange to me is that the problem appears only after saving the node, after reverting to previous version I need to save the node again for have the empty block disappear.

Comments

umberto.’s picture

Solved changing the view filter from "is not empty" to "not equal to" and left blank

GemQueen’s picture

I'm having a similar problem, but I don't want to exclude the row from the view, the link field is one of many I display. I just want the link field to be empty when its really empty, not display the static label for the field. Here is my view: http://www.chja.org/ShowList13

So before 6.x-2.10 was installed the word 'Website' and 'Online Registration' were not displayed when there was no link entry in the underlying event node. Now the words are displaying, and its confusing people, thinking that the link is broken.

In the view, I have these fields marked "Exclude from display", and they are displayed by using their token in a subsequent field. I am doing it this way so that they don't take up a column, but are displayed together as a group in a single column.

lavoiesl’s picture

Same problem here.

When a field with multiple values enabled (haven’t tested single value) but is empty, it bugs the view rendering.

View rendering style : node

Instead of hiding the field, it renders the label and the base_url of my website

I had to revert to 6.x-2.9

lowtrak’s picture

I am having the same issue. In my case, I am theming a node type and have a link field called "purchase" and using something like this in a tpl file:

    	<?php if($node->field_purchase[0][view]):?>
	  <h3>Tickets</h3>
	  <?php print $node->field_purchase[0][view]; ?>
        <?php endif; ?>

Before, this field would not display if the field was left blank. After updating to 6.x-2.10, it started showing the base_url variable when the field was left blank.

Reverting to 6.x-2.9 has temporarily remedied the issue.

lowtrak’s picture

Issue summary: View changes

spelling error correction

daniel-san’s picture

I can confirm that this is now happening on my sites as well.

Using a view that included the link field. Field is set to display none if empty. I have a static title set on that content types field that reads "Register". If the field is empty, the word Register still shows on the view of nodes.

Smath’s picture

*UPDATE** Apparently my mistake was caused by checking the $content[field_name'] rather than the field value in $node.*

I can confirm that the same thing is happening to me on drupal 7, not in views though -- this is happening when I condionally print out the field in a node template (I only print out a certain block depending on whether the field is not empty).

My field settings allow unlimited values.

DamienMcKenna’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Thank you all for your efforts, but I'm sorry to say that the D6 version is no longer supported.