Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUG Fix insert media form inserting images from other UploadFields (f…

…ixes #8051)

The insert media form would pick up unwanted images from other
UploadFields. Limiting where it is looking to only the closest form
fixes this.
  • Loading branch information...
commit 639cc0222cf670df2355fb10332313e618738b7a 1 parent 441bb5f
@kinglozzer kinglozzer authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  javascript/HtmlEditorField.js
View
2  javascript/HtmlEditorField.js
@@ -874,7 +874,7 @@ ss.editorWrappers['default'] = ss.editorWrappers.tinyMCE;
//get the uploaded file ID when this event triggers, signaling the upload has compeleted successfully
editFieldIDs.push($(this).data('id'));
});
- var uploadedFiles = $('.ss-uploadfield-files').children('.ss-uploadfield-item');
+ var uploadedFiles = form.find('.ss-uploadfield-files').children('.ss-uploadfield-item');
uploadedFiles.each(function(){
var uploadedID = $(this).data('fileid');
if ($.inArray(uploadedID, editFieldIDs) == -1) {
Please sign in to comment.
Something went wrong with that request. Please try again.