From 96892bebffdd1e3cc5f8807db92a966f8b8cddec Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@enhancesoft.com>
Date: Sun, 5 Aug 2018 01:07:23 +0000
Subject: [PATCH] Revert "issue: Custom File Upload Dropping"

This reverts commit 14bcd42d8b4ad15073e2f423cc7ba2a0681e94b3.
---
 include/class.forms.php | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/include/class.forms.php b/include/class.forms.php
index 0e9735577..0fc575637 100644
--- a/include/class.forms.php
+++ b/include/class.forms.php
@@ -3974,10 +3974,7 @@ class FileUploadWidget extends Widget {
         // Files already attached to the field are allowed
         foreach ($this->field->getFiles() as $F) {
             // FIXME: This will need special porting in v1.10
-            if ($F instanceof Attachment)
-                $allowed[$F->getFileId()] = 1;
-            else
-                $allowed[$F->id] = 1;
+            $allowed[$F->id] = 1;
         }
 
         // New files uploaded in this session are allowed
-- 
GitLab