From e1e7f4a4a15ee4727c6289c285ada69744d80b30 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 14 Mar 2017 17:30:47 +0100 Subject: [PATCH] Fixed issue #833 - multiplication of the attachment-field in #channels/form. --- public/assets/form/form.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/assets/form/form.js b/public/assets/form/form.js index 3066b4d32..a9821f03a 100644 --- a/public/assets/form/form.js +++ b/public/assets/form/form.js @@ -162,6 +162,11 @@ $(function() { _this.loadCss(_this.css_location) } + $.each(_this.options.attributes, function(index, item) { + if (item.name == 'file[]') { + _this.options.attributes.splice(index, 1); + } + }) if (_this.options.attachmentSupport === true || _this.options.attachmentSupport === 'true') { var attachment = { display: 'Attachments',