Commit d3fd76ae authored by slashrsm's avatar slashrsm
Browse files

Merge pull request #19 from slashrsm/chase_entity_browser

by slashrsm: Chase entity browser.
parents 2837e782 7a45ffbd
...@@ -168,7 +168,7 @@ class DropzoneJsEbWidget extends WidgetBase { ...@@ -168,7 +168,7 @@ class DropzoneJsEbWidget extends WidgetBase {
} }
if (!empty(array_filter($files))) { if (!empty(array_filter($files))) {
$this->selectEntities($files); $this->selectEntities($files, $form_state);
$this->clearFormValues($element, $form_state); $this->clearFormValues($element, $form_state);
} }
} }
......
...@@ -126,7 +126,7 @@ class MediaEntityDropzoneJsEbWidget extends DropzoneJsEbWidget { ...@@ -126,7 +126,7 @@ class MediaEntityDropzoneJsEbWidget extends DropzoneJsEbWidget {
} }
if (!empty(array_filter($media_entities))) { if (!empty(array_filter($media_entities))) {
$this->selectEntities($media_entities); $this->selectEntities($media_entities, $form_state);
$this->clearFormValues($element, $form_state); $this->clearFormValues($element, $form_state);
} }
} }
......
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