Project

General

Profile

Actions

Patch #36817

closed

copyImageFromClipboard function targets the first file input of the page and may conflict with other plugins

Added by Yazan Al aeddin over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Attachments
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Hello,

The function copyImageFromClipboard) targets the first file input of the page and may conflict with other plugins.
On our redmine instance we use the redmine_comments plugin (https://github.com/jbbarth/redmine_comments) that adds the ability to write private note and create a new form.
We experienced a problem as shown in the image1 and image2 ,and when we click on comment as shown in image3
We managed to fix this issue, by replace the line
`var inputEl = $('input:file.filedrop').first();`
by
`var inputEl = $(this).closest("form").find('input:file.filedrop');`

Thank you for your help


Files

image1.png (86.5 KB) image1.png Yazan Al aeddin, 2022-03-21 16:24
image2.png (68.1 KB) image2.png Yazan Al aeddin, 2022-03-21 16:24
image3.png (60.8 KB) image3.png Yazan Al aeddin, 2022-03-21 16:24
redmine_tiny_features.png (70.1 KB) redmine_tiny_features.png Yazan Al aeddin, 2022-04-05 09:32
issue_36817.patch (963 Bytes) issue_36817.patch Yazan Al aeddin, 2022-04-15 11:57

Related issues

Copied to Redmine - Defect #36887: copyImageFromClipboard function failed to generate a unique file nameClosedMarius BĂLTEANU

Actions
Actions

Also available in: Atom PDF