Commit 96958213 authored by setvik's avatar setvik Committed by Jelle_S

Issue #1868988 by setvik: Fixed Neither title nor description is translatable...

Issue #1868988 by setvik: Fixed Neither title nor description is translatable using the webform_localization() module .
parent c302a2da
......@@ -350,6 +350,7 @@ function _webform_render_multifile($component, $value = NULL, $filter = TRUE) {
$current_types = isset($component['extra']['filtering']['types']) ? $component['extra']['filtering']['types'] : array();
$element[$form_key] = array(
'#type' => 'file',
'#translatable' => array('title', 'description'),
'#title' => $filter ? _webform_filter_xss($component['name']) : $component['name'],
'#title_display' => $component['extra']['title_display'] ? $component['extra']['title_display'] : 'before',
//'#required' => $component['mandatory'], // Drupal core bug with required file uploads.
......
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