Commit 1c75fc8f authored by larowlan's avatar larowlan Committed by olstjos

Issue #2479473 by deviantintegral, larowlan: Add the field name to the media upload parameters

parent d2f8a606
......@@ -116,6 +116,7 @@ function media_field_widget_form(&$form, &$form_state, $field, $instance, $langc
'max_filesize' => isset($field_settings['max_filesize']) ? $field_settings['max_filesize'] : 0,
'uri_scheme' => !empty($field['settings']['uri_scheme']) ? $field['settings']['uri_scheme'] : file_default_scheme(),
'multiselect' => $multiselect,
'field' => $field['field_name'],
),
),
// Allows this field to return an array instead of a single value.
......
......@@ -1221,6 +1221,7 @@ function media_set_browser_params() {
'fid',
'id',
'multiselect',
'field',
'options',
'plugins',
'render',
......
......@@ -1001,6 +1001,7 @@ class MediaElementSettingsTestCase extends MediaFileFieldTestCase {
'max_filesize' => '',
'uri_scheme' => 'public',
'multiselect' => $multiselect,
'field' => $field_name,
),
),
),
......
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