[Koha-bugs] [Bug 35344] Patron image upload does not warn about missing cardnumber

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 16 06:13:33 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35344

--- Comment #1 from David Cook <dcook at prosentient.com.au> ---
Created attachment 159019
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159019&action=edit
Bug 35344: Warn on patron image upload if missing cardnumber

This change displays a warning message instead of the patron image
upload feature in the patron record when the patron is missing the
cardnumber.

Without this change, the staff user can try to upload a patron image
but it will silently fail. This change warns the staff user of the
cardnumber requirement for patron image upload.

Test plan:
0. Apply the patch
1. Enable the "patronimages" system preference
2. Go to
http://localhost:8081/cgi-bin/koha/members/moremember.pl?borrowernumber=51
3. Click "Add" over the patron image placeholder
4. Note the "Upload photo" button and the ability to take a patron photo if
your
device has a camera
5. Remove "cardnumber" from BorrowerMandatoryField
6. Go to
http://localhost:8081/cgi-bin/koha/circ/circulation.pl?borrowernumber=51
7. Edit the patron to remove the cardnumber
8. Click "Add" over the patron image placeholder
9. Note that no patron image upload features appear. Instead, only
a warning appears stating that the patron needs a cardnumber before
the patron image upload can be performed

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


More information about the Koha-bugs mailing list