peclik / clipboard_image_paste

Redmine plugin for pasting cropped image from clipboard as an attachment.
264 stars 118 forks source link

double name for pasted image #72

Open mattiscb opened 6 years ago

mattiscb commented 6 years ago

in an issue with a lot (10+) images a double in the proposed picture names occurred (picture648-1.png).

The issue showed only the later attached image - even where the first attached image was shown before.

both images under the same name could be deleted seperately and reattached under different names, so no trouble there - only a user got a little confused.

since the 3 digit number seems to be randomly generated every time an issue is edited, such a collision is inevitable to happen sometime.

Maybe a short test could be implemented, that gives the user a warning: "image with that name already attached!"

Error occurred with Version 1.10 of the plugin.

terentev-mn commented 5 years ago

This is not bug! This is feature :) clipboard_image_paste/config/settings.yml

...
max_attachments : 10
...