[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Mason Jameschanged: What|Removed |Added CC||m...@kohaaloha.com --- Comment #13 from Mason James --- Pushed to 16.05.x, for 16.05.15 release -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Katrin Fischerchanged: What|Removed |Added Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Katrin Fischerchanged: What|Removed |Added Status|REOPENED|Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Liz Reachanged: What|Removed |Added Severity|enhancement |normal Katrin Fischer changed: What|Removed |Added Resolution|FIXED |--- Status|RESOLVED|REOPENED --- Comment #12 from Katrin Fischer --- These patches have been pushed to 16.11.x and will be in 16.11.10. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Katrin Fischerchanged: What|Removed |Added Status|Passed QA |Pushed to Stable -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Katrin Fischerchanged: What|Removed |Added Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Marc Véronchanged: What|Removed |Added See Also||https://bugs.koha-community ||.org/bugzilla3/show_bug.cgi ||?id=18800 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 --- Comment #11 from Marc Véron--- (In reply to Katrin Fischer from comment #9) > This won't get ported back to 16.11.x as it is an enhancement. Hi Katrin, can you reconsider, since users can run into a data loss by overwriting images? Marc -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Marc Véronchanged: What|Removed |Added CC||l...@catalyst.net.nz --- Comment #10 from Marc Véron --- *** Bug 15000 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Katrin Fischerchanged: What|Removed |Added Status|Pushed to Master|RESOLVED Resolution|--- |FIXED CC||katrin.fisc...@bsz-bw.de --- Comment #9 from Katrin Fischer --- This won't get ported back to 16.11.x as it is an enhancement. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Kyle M Hallchanged: What|Removed |Added CC||k...@bywatersolutions.com Status|Passed QA |Pushed to Master --- Comment #8 from Kyle M Hall --- Pushed to master for 17.05, thanks Aleisha, Jonathan! -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Jonathan Druartchanged: What|Removed |Added Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 --- Comment #7 from Jonathan Druart--- Created attachment 58922 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58922=edit Bug 17181: Simplify code - do not prepare statement when used only once - remove use of Data::Dumper - remove $duplicate, not needed Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Jonathan Druartchanged: What|Removed |Added Attachment #58917|0 |1 is obsolete|| --- Comment #6 from Jonathan Druart --- Created attachment 58921 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58921=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 Signed-off-by: Claire Gravely Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Claire Gravelychanged: What|Removed |Added Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Claire Gravelychanged: What|Removed |Added Attachment #5|0 |1 is obsolete|| --- Comment #5 from Claire Gravely --- Created attachment 58917 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58917=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 Signed-off-by: Claire Gravely -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Aleisha Amohiachanged: What|Removed |Added Attachment #58808|0 |1 is obsolete|| --- Comment #4 from Aleisha Amohia --- Created attachment 5 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=5=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 Signed-off-by: Claire Gravely -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Aleisha Amohiachanged: What|Removed |Added Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Jonathan Druartchanged: What|Removed |Added CC||jonathan.dru...@bugs.koha-c ||ommunity.org Status|Signed Off |Failed QA -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 --- Comment #3 from Jonathan Druart--- Comment on attachment 58808 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58808 Bug 17181: Check for duplicate image names when uploading image to patron card creator Review of attachment 58808: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html=17181=58808) - ::: patroncards/image-manage.pl @@ +49,5 @@ > if ($op eq 'upload') { > +# Checking for duplicate image name > +my $duplicate; > +my $dbh = C4::Context->dbh; > +my $query = "SELECT image_name FROM creator_images"; What you want here is to select the number of images with the $image_name: SELECT COUNT(*) FROM creator_images WHERE image_name=? That will simplify this part of code. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Claire Gravelychanged: What|Removed |Added Attachment #58789|0 |1 is obsolete|| --- Comment #2 from Claire Gravely --- Created attachment 58808 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58808=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 Signed-off-by: Claire Gravely -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Claire Gravelychanged: What|Removed |Added Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Aleisha Amohiachanged: What|Removed |Added Change sponsored?|--- |Sponsored Assignee|cnighswon...@foundations.ed |aleishaamo...@hotmail.com |u | -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 --- Comment #1 from Aleisha Amohia--- Created attachment 58789 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58789=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. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 17181] Patron card creator replaces existing image when uploading image with same name
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17181 Aleisha Amohiachanged: What|Removed |Added Status|NEW |Needs Signoff Patch complexity|--- |Small patch -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/