Bug 15635: Koha::Patron::Images - Remove PutPatronImage
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 21 Jan 2016 12:32:28 +0000 (12:32 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 4 Mar 2016 12:53:00 +0000 (12:53 +0000)
commitd8980b60ee3144ab8ebf2d3bbf6847c622443425
treeb8c852464521e20f4c620cda9a7a493677e6192f
parentb6aa77ac4901e8ad00e941247d7a35c8c47f75bd
Bug 15635: Koha::Patron::Images - Remove PutPatronImage

The C4::Members::PutPatronImage inserted/updated the image of a patron.
This can be done easily with ->find->set->store or ->new->store

Test plan:
1/ Modify the image of a patron from the patron detail page
2/ Add an image to a new patron
3/ Use the "Upload patron images" tools (tools/picture-upload.pl) to add
or modify the image of a patron
4/ Use the "Upload patron images" tools (tools/picture-upload.pl) to add
or modify the image of several patrons, using a zip file.
Stress the script trying to get as many errors as possible (wrong
cardnumber, wrong mimetype, file does not exist, etc.)
With this patch, if the cardnumber does not exist, you will get a
specific error "Image not imported because this patron does not exist in
the database"

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Members.pm
koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tt
tools/picture-upload.pl