summaryrefslogtreecommitdiff
path: root/modules/file/file.field.inc
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2015-10-12 02:08:50 -0400
committerDavid Rothstein <drothstein@gmail.com>2015-10-12 02:08:50 -0400
commitc515c14dadab747b7fb02af04723be2435dff6b8 (patch)
tree1168966a092b9f7150ca9dd4f8b9103580a7838a /modules/file/file.field.inc
parentf33147e9b49facc6c6fc93c25a6f9fab992843b6 (diff)
downloadbrdo-c515c14dadab747b7fb02af04723be2435dff6b8.tar.gz
brdo-c515c14dadab747b7fb02af04723be2435dff6b8.tar.bz2
Issue #1520716 by lokapujya, djdevin, David Lesieur, cwells, jhedstrom: "Files displayed by default" not respected
Diffstat (limited to 'modules/file/file.field.inc')
-rw-r--r--modules/file/file.field.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/file/file.field.inc b/modules/file/file.field.inc
index 794f16e67..d592381bd 100644
--- a/modules/file/file.field.inc
+++ b/modules/file/file.field.inc
@@ -632,7 +632,7 @@ function file_field_widget_process($element, &$form_state, $form) {
$element['#theme'] = 'file_widget';
// Add the display field if enabled.
- if (!empty($field['settings']['display_field']) && $item['fid']) {
+ if (!empty($field['settings']['display_field'])) {
$element['display'] = array(
'#type' => empty($item['fid']) ? 'hidden' : 'checkbox',
'#title' => t('Include file in display'),