Merge pull request #4594 from kinglozzer/uploadfield-attach-nonexistent

FIX: UploadField error when attempting to attach non-existent file IDs
This commit is contained in:
Damian Mooyman 2015-09-11 16:33:42 +12:00
commit 6699f65b3f

View File

@ -316,6 +316,8 @@
indicator.remove();
},
success: function(data, status, xhr) {
if (!data || $.isEmptyObject(data)) return;
self.fileupload('attach', {
files: data,
options: self.fileupload('option'),