Fixed issue #833 - multiplication of the attachment-field in #channels/form.

This commit is contained in:
Martin Edenhofer 2017-03-14 17:30:47 +01:00
parent b5f3d26371
commit e1e7f4a4a1

View file

@ -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',