Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
media_entity_file_replace
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
media_entity_file_replace
Commits
7449c3e6
Commit
7449c3e6
authored
1 year ago
by
Kurt Trowbridge
Committed by
Adam Nagy
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3241647
: "Undefined index: #type" error when combined with Remote Stream Wrapper
parent
57fa6169
No related branches found
No related tags found
1 merge request
!1
Issue #3241647: "Undefined index: #type" error when combined with Remote Stream Wrapper
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
media_entity_file_replace.module
+1
-1
1 addition, 1 deletion
media_entity_file_replace.module
with
1 addition
and
1 deletion
media_entity_file_replace.module
+
1
−
1
View file @
7449c3e6
...
...
@@ -190,7 +190,7 @@ function media_entity_file_replace_form_media_form_alter(&$form, FormStateInterf
// widget outright.
// This must be done in a process callback, since the action buttons on
// the widget are themselves added in a process callback.
if
(
isset
(
$form
[
$sourceFieldName
][
'widget'
][
0
])
&&
$form
[
$sourceFieldName
][
'widget'
][
0
][
'#type'
]
===
'managed_file'
)
{
if
(
isset
(
$form
[
$sourceFieldName
][
'widget'
][
0
])
&&
isset
(
$form
[
$sourceFieldName
][
'widget'
][
0
][
'#type'
])
&&
$form
[
$sourceFieldName
][
'widget'
][
0
][
'#type'
]
===
'managed_file'
)
{
$form
[
$sourceFieldName
][
'widget'
][
0
][
'#process'
][]
=
'_media_entity_file_replace_disable_remove_button'
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment