]> 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)
committerMason James <mtj@kohaaloha.com>
Sun, 30 Jul 2017 13:02:06 +0000 (01:02 +1200)
commitf6e97f85f3f49c3bf56a5525bc7286541bc50112
treea67583159c9b2ec26df820bd25beb0fe58f254e1
parent8e7f50da6a0ebc1c27996249f634553bd02dd9a8
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: Mason James <mtj@kohaaloha.com>
koha-tmpl/intranet-tmpl/prog/en/includes/patroncards-errors.inc
patroncards/image-manage.pl