core security update
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user