Commit 2837e782 authored by Primsi's avatar Primsi
Browse files

Issue #2601802 by Primsi: The media entity eb widget saved entities are missing some values

parent 5ca686c4
......@@ -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;
......
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