]> git.koha-community.org Git - koha.git/commit
Bug 17879: Use image filename if no image name is entered
authorAleisha Amohia <aleishaamohia@hotmail.com>
Tue, 10 Jan 2017 22:20:40 +0000 (22:20 +0000)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sun, 15 Jan 2017 17:50:09 +0000 (18:50 +0100)
commitd8ff6f0ea8a0839c4689897fa27857b33f9bfb81
tree61fb7d460ce9a15dfd0bba24536ab9246d7473d0
parent70a825057f8495ea6f0dd698bac4fa0b9be055ab
Bug 17879: Use image filename if no image name is entered

This patch changes the code to use the filename of the uploaded image if
no specific image name is entered.

To test:
1) Go to Tools -> Patron card creator -> Manage images
2) Upload an image and leave the image name field empty
3) Notice this works and 'Name' is left empty.
4) Apply patch and refresh page
5) Upload an image and leave the image name field empty
6) Notice the image name is given the filename so that 'Name' is no
longer empty.

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 d3752c85dc2f5af974ec2fe4585efa8510302968)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
patroncards/image-manage.pl