Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
dropzonejs
Commits
32249f1b
Commit
32249f1b
authored
Feb 16, 2017
by
chr.fritsch
Committed by
Primsi
Feb 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2830801
by chr.fritsch: Replace entity in form of IEF widget
parent
449af843
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
modules/eb_widget/src/Plugin/EntityBrowser/Widget/DropzoneJsEbWidget.php
...et/src/Plugin/EntityBrowser/Widget/DropzoneJsEbWidget.php
+4
-0
No files found.
modules/eb_widget/src/Plugin/EntityBrowser/Widget/DropzoneJsEbWidget.php
View file @
32249f1b
...
...
@@ -202,6 +202,10 @@ class DropzoneJsEbWidget extends WidgetBase {
}
}
if
(
$form
[
'widget'
][
'upload'
][
'#max_files'
])
{
$files
=
array_slice
(
$files
,
-
$form
[
'widget'
][
'upload'
][
'#max_files'
]);
}
$form_state
->
set
([
'dropzonejs'
,
$this
->
uuid
(),
'files'
],
$files
);
return
$files
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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