[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 11 01:43:23 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181

--- Comment #1 from Aleisha Amohia <aleishaamohia at hotmail.com> ---
Created attachment 58789
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58789&action=edit
Bug 17181: Check for duplicate image names when uploading image to patron card
creator

This patch adds a check for duplicates before uploading the image.

To test:
1) Go to Tools -> Patron card creator -> Manage images
2) If you haven't already, upload an image
3) Try to upload another image with the same image name
4) Notice the first image is replaced with the second image, with no
warning.
5) Apply patch and refresh page
6) Try to upload an image with the same image name again
7) Notice you are now warned about a duplicate image name.
8) Check that uploading an image with a unique name still works.

Sponsored-by: Catalyst IT

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list