Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
dropzonejs
Commits
2837e782
Commit
2837e782
authored
Oct 26, 2015
by
Primoz Hmeljak
Browse files
Issue
#2601802
by Primsi: The media entity eb widget saved entities are missing some values
parent
5ca686c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/eb_widget/src/Plugin/EntityBrowser/Widget/MediaEntityDropzoneJsEbWidget.php
View file @
2837e782
...
...
@@ -112,6 +112,9 @@ class MediaEntityDropzoneJsEbWidget extends DropzoneJsEbWidget {
$media_entity
=
$this
->
entityManager
->
getStorage
(
'media'
)
->
create
([
'bundle'
=>
$bundle
->
id
(),
$bundle
->
getTypeConfiguration
()[
'source_field'
]
=>
$file
,
'uid'
=>
$user
->
id
(),
'status'
=>
TRUE
,
'type'
=>
$bundle
->
getType
()
->
getPluginId
(),
]);
$media_entity
->
save
();
$media_entities
[]
=
$media_entity
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment