]> git.koha-community.org Git - koha.git/commit
Bug 17181: Check for duplicate image names when uploading image to patron card creator
authorAleisha Amohia <aleishaamohia@hotmail.com>
Wed, 11 Jan 2017 00:40:31 +0000 (00:40 +0000)
committerKatrin Fischer <katrin.fischer.83@web.de>
Wed, 28 Jun 2017 05:48:41 +0000 (07:48 +0200)
commit34d76fe38980b7665bc8a9945eab09b2fd81edf2
tree26b306acbad8acd8c465b8a1bfd363e5c97e6296
parenta38a6ba178775cfbed8f0cc51e6c5c881864b8af
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
Signed-off-by: Claire Gravely <claire_gravely@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 2173b780c951a4d6abd990a212c6e6bb23fa37d7)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
koha-tmpl/intranet-tmpl/prog/en/includes/patroncards-errors.inc
patroncards/image-manage.pl