Commit 6cd162b1 authored by merlinofchaos's avatar merlinofchaos

#535424 by Hugo Wetterberg: Download file link could provide empty a tag if no file is available.

parent 868b22d3
......@@ -37,6 +37,7 @@ Views 2.x-dev
o #485872 by dereine: Make sure views.css is always loaded for all users.
o #442982 by killes: Make destroy() method more robust so that views are more readily reused.
o #520558 by bdurbin: node access filter not properly checking 'view'.
o #535424 by Hugo Wetterberg: Download file link could provide empty a tag if no file is available.
Other changes:
o Implement a post_render hook (for themes too) and cache method.
......
......@@ -65,6 +65,9 @@ class views_handler_field_upload_description extends views_handler_field {
$this->options['alter']['make_link'] = TRUE;
$this->options['alter']['path'] = file_create_url($values->filepath);
}
else {
$this->options['alter']['make_link'] = FALSE;
}
return $data;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment