From fc750a428cfdbefe034f909bb60b5f0110db2e80 Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Mon, 4 Mar 2013 17:44:33 +0000
Subject: [PATCH] Issue #1884148 by sun, swentel: Fixed field widget disappears
 when increase cardinality for image to allow multiple values.

---
 .../file/lib/Drupal/file/Plugin/field/widget/FileWidget.php      | 1 +
 1 file changed, 1 insertion(+)

diff --git a/core/modules/file/lib/Drupal/file/Plugin/field/widget/FileWidget.php b/core/modules/file/lib/Drupal/file/Plugin/field/widget/FileWidget.php
index 98a7a9613371..7928947e75d7 100644
--- a/core/modules/file/lib/Drupal/file/Plugin/field/widget/FileWidget.php
+++ b/core/modules/file/lib/Drupal/file/Plugin/field/widget/FileWidget.php
@@ -141,6 +141,7 @@ protected function formMultipleElements(EntityInterface $entity, array $items, $
       // The group of elements all-together need some extra functionality after
       // building up the full list (like draggable table rows).
       $elements['#file_upload_delta'] = $delta;
+      $elements['#type'] = 'details';
       $elements['#theme'] = 'file_widget_multiple';
       $elements['#theme_wrappers'] = array('details');
       $elements['#process'] = array('file_field_widget_process_multiple');
-- 
GitLab