summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2009-09-15 22:15:31 (GMT)
committer Earl Miles2009-09-15 22:15:31 (GMT)
commit6cd162b1112585cbfd9a88c140231807c89caac3 (patch)
treec0eeea4ed958ab2baca6eedd80b33f8c672982e4
parent868b22d3ae7b35d479ba80ce4f3711a61f06e0cb (diff)
#535424 by Hugo Wetterberg: Download file link could provide empty a tag if no file is available.
-rw-r--r--CHANGELOG.txt1
-rw-r--r--modules/upload/views_handler_field_upload_description.inc3
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index c18c173..5efc1c0 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -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.
diff --git a/modules/upload/views_handler_field_upload_description.inc b/modules/upload/views_handler_field_upload_description.inc
index def55d1..623e449 100644
--- a/modules/upload/views_handler_field_upload_description.inc
+++ b/modules/upload/views_handler_field_upload_description.inc
@@ -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;
}
}