[Koha-bugs] [Bug 11917] upload patron image can raise a software error

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 10 14:25:49 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11917

--- Comment #1 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 26005
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26005&action=edit
Bug 11917: upload image - catch error if cardnumber does not exist.

On uploading a patron image, if the given cardnumber does not exist,
a software error is raised

DBD::mysql::st execute failed: Column 'borrowernumber' cannot be null at
/home/koha/src/C4/Members.pm line 1916.

Test plan:
go on tools/picture-upload.pl, choose an image and put a cardnumber which does
not exist in DB.
With the patch, you should get a friendly error message.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list