If 'Link this field to download the file' for a upload field is checked all nodes without a uploaded file will have the options['alter']['make_link'] preserved from the last node with a uploaded file. This results in a empty a-tag with a href to the previous nodes file. This patch sets options['alter']['make_link'] to FALSE if the field is empty.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

FileSize
822 bytes

Makes sense.

I could also reproduce it.

But I need to upload another easy to apply patch :)

@Huge Wetterberg.
How can format a patch for only one commit in git? Thats just personal interrest.

merlinofchaos’s picture

Status: Needs review » Fixed

Makes sense. Committed!

Status: Fixed » Closed (fixed)

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