プロジェクト

全般

プロフィール

Vote #81868

完了

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

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Attachments_19
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
19
version_id:
177
issue_org_id:
36817
author_id:
577349
assigned_to_id:
107353
comments:
13
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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


journals

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
I'm trying to reproduce the issue, but the plugin doesn't work on current trunk. Can you help me reproduce?
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Hello
Did you install the plugin (redmine_tiny_features)?
Because the bug is fixed by overriding the method (copyImageFromClipboard).
--------------------------------------------------------------------------------
Yazan Al aeddin wrote:
> Hello
> Did you install the plugin (redmine_tiny_features)?
> Because the bug is fixed by overriding the method (copyImageFromClipboard).

I only tried to install https://github.com/jbbarth/redmine_comments and I saw a new role permission, but nothing else in the UI.
--------------------------------------------------------------------------------
Ok I'll see
--------------------------------------------------------------------------------
Did you make (rake redmine:plugins:migrate)?
--------------------------------------------------------------------------------
Hello
We propose this patch
Thank you for your help.
--------------------------------------------------------------------------------
Patch committed, thanks!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

copied_to,Closed,36887,copyImageFromClipboard function failed to generate a unique file name

Admin Redmine さんが約4年前に更新

  • カテゴリAttachments_19 にセット
  • 対象バージョン4.2.6_177 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0